From 199f3d3749b7ab236f189e3e79095110d37f6ddd Mon Sep 17 00:00:00 2001 From: lijia Date: Wed, 17 Apr 2024 15:49:32 +0800 Subject: feat: TSG-20668, add get first packet ip TTL --- module_test/src/gtest_main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'module_test/src/gtest_main.cpp') 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; -- cgit v1.2.3