diff options
| author | lijia <[email protected]> | 2024-04-17 15:49:32 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-04-21 02:35:56 +0800 |
| commit | 199f3d3749b7ab236f189e3e79095110d37f6ddd (patch) | |
| tree | 64d7e24fc43dcf62e63f7a4dc40de31ab6e3b425 /module_test/src/gtest_main.cpp | |
| parent | 32d00d5244c26e129f66f2054a2558cf376c8611 (diff) | |
feat: TSG-20668, add get first packet ip TTL
Diffstat (limited to 'module_test/src/gtest_main.cpp')
| -rw-r--r-- | module_test/src/gtest_main.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/module_test/src/gtest_main.cpp b/module_test/src/gtest_main.cpp index 5177f72..e121b4d 100644 --- a/module_test/src/gtest_main.cpp +++ b/module_test/src/gtest_main.cpp @@ -936,6 +936,13 @@ TEST(control, get_udp_flow_stat) ASSERT_EQ(GTEST_SAPP_SUCC, gtest_get_libsapp_devel_result()); } +#define control_get_ip_ttl 1 +TEST(control, get_ip_ttl) +{ + control_get_ip_ttl_run(); + ASSERT_EQ(GTEST_SAPP_SUCC, gtest_get_libsapp_devel_result()); +} + /************************ project_requirement.h API test ***********************/ #define project_simple 1 // for SI symbol view @@ -2191,7 +2198,7 @@ int main(int argc, char *argv[]) { int c; int to_gtest_argc = 1; - char *to_gtest_args[4] = {}; + char *to_gtest_args[4] = {(char *)"gtest_sapp_v4", NULL,NULL,NULL}; char temp_string[1024] = {}; int user_log_level = RLOG_LV_DEBUG; |
