diff options
author | Le-Tin <Tin.Le@vn.bosch.com> | 2021-09-01 10:54:43 +0000 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2021-10-05 11:19:26 +0900 |
commit | 16749747cc5827b346b818a947b360c060d7667f (patch) | |
tree | 3ea1d47e598fafab5ec64e9e67e33535c50b40aa /tests/gtest_dlt_daemon_gateway.cpp | |
parent | c602c605efba4c47d7c192d17d0debd25348a9d7 (diff) | |
download | DLT-daemon-16749747cc5827b346b818a947b360c060d7667f.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)); |