diff options
| author | liuxueli <[email protected]> | 2023-06-13 11:27:49 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2023-06-17 19:34:16 +0800 |
| commit | fdfc48ad2048c1eeeb3af0208cf2cdb0f7813e3f (patch) | |
| tree | 513bffa91730faceef9e611eb53e78716a14f3ce /test/src/gtest_sync_state.cpp | |
| parent | 1e121ac169703766936c3c147361256009b0e1e7 (diff) | |
适配libfieldstat3
Diffstat (limited to 'test/src/gtest_sync_state.cpp')
| -rw-r--r-- | test/src/gtest_sync_state.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/test/src/gtest_sync_state.cpp b/test/src/gtest_sync_state.cpp index b28bef9..17c50cf 100644 --- a/test/src/gtest_sync_state.cpp +++ b/test/src/gtest_sync_state.cpp @@ -6,6 +6,7 @@ #include <MESA/cJSON.h> #include <MESA/MESA_handle_logger.h> +#include "tsg_stat.h" #include "tsg_sync_state.h" #include "tsg_variable.h" #include "mpack.h" @@ -1464,10 +1465,13 @@ TEST(LOG_UPDATE, ProxyTwice) int main(int argc, char *argv[]) { - g_tsg_para.logger = MESA_create_runtime_log_handle("log/tsg_sync_state", 10); - // tsg_bridge_init("tsgconf/main.conf"); - testing::InitGoogleTest(&argc, argv); - int ret = RUN_ALL_TESTS(); - MESA_destroy_runtime_log_handle(g_tsg_para.logger); - return ret; + g_tsg_para.logger = MESA_create_runtime_log_handle("log/tsg_sync_state", 10); + tsg_stat_create("./tsgconf/main.conf"); + tsg_stat_init(); + tsg_stat_start(); + + testing::InitGoogleTest(&argc, argv); + int ret = RUN_ALL_TESTS(); + MESA_destroy_runtime_log_handle(g_tsg_para.logger); + return ret; } |
