From 573c1f9a0ba41b7ffa45f36e05b7f50aae3fb1ec Mon Sep 17 00:00:00 2001 From: Bui Nguyen Quoc Thanh Date: Fri, 13 Mar 2020 15:30:39 +0700 Subject: Unittest: Update testcase gtest_dlt_daemon_gateway is updated to test for both cases: "With and Without General section in dlt_gateway.conf" Timeout=0 is now endless retry. So change it to "-1" Signed-off-by: Bui Nguyen Quoc Thanh --- tests/gtest_dlt_daemon_gateway.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/gtest_dlt_daemon_gateway.cpp') diff --git a/tests/gtest_dlt_daemon_gateway.cpp b/tests/gtest_dlt_daemon_gateway.cpp index b0cd229..8b293bb 100644 --- a/tests/gtest_dlt_daemon_gateway.cpp +++ b/tests/gtest_dlt_daemon_gateway.cpp @@ -321,7 +321,7 @@ TEST(t_dlt_gateway_check_timeout, abnormal) { DltGatewayConnection tmp; DltGatewayConnection *con; - char value[DLT_CONFIG_FILE_ENTRY_MAX_LEN] = "0"; + char value[DLT_CONFIG_FILE_ENTRY_MAX_LEN] = "-1"; con = &tmp; EXPECT_EQ(DLT_RETURN_ERROR, dlt_gateway_check_timeout(con, value)); -- cgit v1.2.1