init regex cache in unit test
This commit is contained in:
parent
41b8693430
commit
d0ade067b2
|
@ -43,6 +43,7 @@
|
||||||
#include "tglobal.h"
|
#include "tglobal.h"
|
||||||
#include "tlog.h"
|
#include "tlog.h"
|
||||||
#include "tvariant.h"
|
#include "tvariant.h"
|
||||||
|
#include "tcompare.h"
|
||||||
|
|
||||||
#define _DEBUG_PRINT_ 0
|
#define _DEBUG_PRINT_ 0
|
||||||
|
|
||||||
|
@ -52,6 +53,12 @@
|
||||||
#define PRINTF(...)
|
#define PRINTF(...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
class constantTest {
|
||||||
|
public:
|
||||||
|
constantTest() { InitRegexCache(); }
|
||||||
|
~constantTest() { DestroyRegexCache(); }
|
||||||
|
};
|
||||||
|
static constantTest test;
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
SColumnInfo createColumnInfo(int32_t colId, int32_t type, int32_t bytes) {
|
SColumnInfo createColumnInfo(int32_t colId, int32_t type, int32_t bytes) {
|
||||||
|
|
Loading…
Reference in New Issue