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_rule.cpp | |
| parent | 1e121ac169703766936c3c147361256009b0e1e7 (diff) | |
适配libfieldstat3
Diffstat (limited to 'test/src/gtest_rule.cpp')
| -rw-r--r-- | test/src/gtest_rule.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/src/gtest_rule.cpp b/test/src/gtest_rule.cpp index 7d7fd51..a3082af 100644 --- a/test/src/gtest_rule.cpp +++ b/test/src/gtest_rule.cpp @@ -1,8 +1,9 @@ #include <stdio.h> #include <string.h> #include <unistd.h> - #include <arpa/inet.h> + +#include "tsg_stat.h" #include "tsg_rule.h" #include "tsg_label.h" #include "tsg_entry.h" @@ -1091,7 +1092,11 @@ TEST(TMAPI, ScanAppPropertiesPolicy) int main(int argc, char *argv[]) { + tsg_stat_create("./tsgconf/main.conf"); + tsg_stat_init(); tsg_maat_rule_init("tsgconf/main.conf"); + tsg_stat_start(); + testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } |
