From 16749747cc5827b346b818a947b360c060d7667f Mon Sep 17 00:00:00 2001 From: Le-Tin Date: Wed, 1 Sep 2021 10:54:43 +0000 Subject: gtest_dlt_daemon_gateway: fix gtest build failed Add gtest and gtest_main libraries if we don't install gtest package in system Create a new message fillter config file when running gtest gateway shell script set type of control message is CONTROL_MESSAGE_ON_DEMAND when testing dlt_gateway_send_control_message function Signed-off-by: Le-Tin --- tests/gtest_dlt_daemon_gateway.cpp | 1 + 1 file changed, 1 insertion(+) (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 5bdefac..418ed86 100644 --- a/tests/gtest_dlt_daemon_gateway.cpp +++ b/tests/gtest_dlt_daemon_gateway.cpp @@ -121,6 +121,7 @@ TEST(t_dlt_gateway_send_control_message, Normal) (void) dlt_gateway_init(&daemon_local, 0); daemon_local.pGateway.connections->p_control_msgs->id = DLT_SERVICE_ID_GET_LOG_INFO; + daemon_local.pGateway.connections->p_control_msgs->type = CONTROL_MESSAGE_ON_DEMAND; EXPECT_EQ(DLT_RETURN_OK, dlt_gateway_send_control_message(daemon_local.pGateway.connections, daemon_local.pGateway.connections->p_control_msgs, NULL, 0)); -- cgit v1.2.1