From: Jérémie Galarneau Date: Fri, 5 May 2017 03:53:27 +0000 (-0400) Subject: Tests: add placeholder symbol to allow unit tests to link X-Git-Tag: v2.10.0-rc1~35 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=83b45089a2624e885b0f0308be7ba5b061b23282;p=lttng-tools.git Tests: add placeholder symbol to allow unit tests to link Signed-off-by: Jérémie Galarneau --- diff --git a/tests/unit/Makefile.am b/tests/unit/Makefile.am index f9dd53bef..f11b69b7c 100644 --- a/tests/unit/Makefile.am +++ b/tests/unit/Makefile.am @@ -73,6 +73,7 @@ UST_DATA_TRACE=$(top_builddir)/src/bin/lttng-sessiond/trace-ust.$(OBJEXT) \ $(top_builddir)/src/bin/lttng-sessiond/session.$(OBJEXT) \ $(top_builddir)/src/bin/lttng-sessiond/snapshot.$(OBJEXT) \ $(top_builddir)/src/bin/lttng-sessiond/agent.$(OBJEXT) \ + $(top_builddir)/src/bin/lttng-sessiond/notification-thread-commands.$(OBJEXT) \ $(top_builddir)/src/common/libcommon.la \ $(top_builddir)/src/common/health/libhealth.la \ $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la @@ -89,6 +90,7 @@ KERN_DATA_TRACE=$(top_builddir)/src/bin/lttng-sessiond/trace-kernel.$(OBJEXT) \ $(top_builddir)/src/bin/lttng-sessiond/utils.$(OBJEXT) \ $(top_builddir)/src/common/libcommon.la \ $(top_builddir)/src/common/health/libhealth.la \ + $(top_builddir)/src/bin/lttng-sessiond/notification-thread-commands.$(OBJEXT) \ $(top_builddir)/src/common/sessiond-comm/libsessiond-comm.la test_kernel_data_SOURCES = test_kernel_data.c diff --git a/tests/unit/test_kernel_data.c b/tests/unit/test_kernel_data.c index 6a35ea54a..ad4666b6f 100644 --- a/tests/unit/test_kernel_data.c +++ b/tests/unit/test_kernel_data.c @@ -38,6 +38,7 @@ int lttng_opt_quiet = 1; int lttng_opt_verbose; int lttng_opt_mi; +struct notification_thread_handle *notification_thread_handle; int ust_consumerd32_fd; int ust_consumerd64_fd; diff --git a/tests/unit/test_ust_data.c b/tests/unit/test_ust_data.c index 7996b8e60..86c1e23bf 100644 --- a/tests/unit/test_ust_data.c +++ b/tests/unit/test_ust_data.c @@ -30,6 +30,7 @@ #include #include #include +#include #include @@ -49,8 +50,9 @@ int lttng_opt_mi; int ust_consumerd32_fd; int ust_consumerd64_fd; -/* Global variable required by sessiond objects being linked-in */ +/* Global variables required by sessiond objects being linked-in */ struct lttng_ht *agent_apps_ht_by_sock; +struct notification_thread_handle *notification_thread_handle; static const char alphanum[] = "0123456789"