diff options
author | Le-Tin <Tin.Le@vn.bosch.com> | 2021-09-01 10:54:43 +0000 |
---|---|---|
committer | Saya Sugiura <ssugiura@jp.adit-jv.com> | 2021-10-05 11:07:38 +0900 |
commit | b942cb8c5c565fe1d56711607018bd36ada74f16 (patch) | |
tree | 3ea1d47e598fafab5ec64e9e67e33535c50b40aa /tests/gtest_dlt_daemon_gateway.cpp | |
parent | f16953f5ab2506ef0fb714fe6bb8a022845b8c68 (diff) | |
download | DLT-daemon-b942cb8c5c565fe1d56711607018bd36ada74f16.tar.gz |
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 <Tin.Le@vn.bosch.com>
Diffstat (limited to 'tests/gtest_dlt_daemon_gateway.cpp')
-rw-r--r-- | tests/gtest_dlt_daemon_gateway.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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)); |