From 404bc3934bcb0bbb5671a84ecb45c95069bc1ab3 Mon Sep 17 00:00:00 2001 From: Saya Sugiura Date: Tue, 11 Feb 2020 10:24:39 +0900 Subject: network trace: Add mqueue verification There is some OS (e.g. Android) which doesn't support message queue. Since network trace uses it as IPC, we need to disable it if following calls are not available: mq_open, mq_close, mq_unlink, mq_send, mq_receive Signed-off-by: Saya Sugiura Signed-off-by: KHANH LUONG HONG DUY --- tests/gtest_dlt_daemon_offline_log.cpp | 1 + tests/gtest_dlt_user.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/gtest_dlt_daemon_offline_log.cpp b/tests/gtest_dlt_daemon_offline_log.cpp index dd97c5a..aec3e96 100644 --- a/tests/gtest_dlt_daemon_offline_log.cpp +++ b/tests/gtest_dlt_daemon_offline_log.cpp @@ -26,6 +26,7 @@ extern "C" #include #include #include +#include } #ifndef DLT_DAEMON_BLOCKING_TEST diff --git a/tests/gtest_dlt_user.cpp b/tests/gtest_dlt_user.cpp index 0728242..0f28b71 100644 --- a/tests/gtest_dlt_user.cpp +++ b/tests/gtest_dlt_user.cpp @@ -4170,7 +4170,7 @@ TEST(t_dlt_register_log_level_changed_callback, normal) } - +#ifdef DLT_NETWORK_TRACE_ENABLE /*/////////////////////////////////////// */ /* t_dlt_user_trace_network */ TEST(t_dlt_user_trace_network, normal) @@ -4463,7 +4463,7 @@ TEST(t_dlt_user_trace_network_segmented, nullpointer) EXPECT_LE(DLT_RETURN_OK, dlt_unregister_context(&context)); EXPECT_LE(DLT_RETURN_OK, dlt_unregister_app()); } - +#endif /* DLT_NETWORK_TRACE_ENABLE */ /*/////////////////////////////////////// */ /* t_dlt_set_log_mode */ -- cgit v1.2.1