summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSaya Sugiura <ssugiura@jp.adit-jv.com>2020-02-11 10:24:39 +0900
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2020-07-06 10:04:07 +0900
commit404bc3934bcb0bbb5671a84ecb45c95069bc1ab3 (patch)
treefb419eea29e1d8dc99dfdf7f5e6762aaf1934e01 /tests
parent3dca373d843213f03c95df56e36b16d6b83fd58f (diff)
downloadDLT-daemon-404bc3934bcb0bbb5671a84ecb45c95069bc1ab3.tar.gz
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 <ssugiura@jp.adit-jv.com> Signed-off-by: KHANH LUONG HONG DUY <khanh.luonghongduy@vn.bosch.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/gtest_dlt_daemon_offline_log.cpp1
-rw-r--r--tests/gtest_dlt_user.cpp4
2 files changed, 3 insertions, 2 deletions
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 <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
+#include <fcntl.h>
}
#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 */