lib: compile liblttng-ctl as C++
[lttng-tools.git] / tests / regression / tools / notification / consumer_testpoints.c
index 0d1edc5f96a54ce0b12bbc483c8e8ac22d16e51e..6294683f98cc0299e24fc4bfd4ac28b3edd77de5 100644 (file)
@@ -12,9 +12,9 @@
 #include <unistd.h>
 #include <stdbool.h>
 #include <lttng/constant.h>
+#include <lttng/lttng-export.h>
 #include <fcntl.h>
 #include <dlfcn.h>
-#include <assert.h>
 #include <stdio.h>
 
 static char *pause_pipe_path;
@@ -47,7 +47,7 @@ void __attribute__((destructor)) pause_pipe_fini(void)
  * thread to create a named pipe/FIFO which a test application can use to either
  * pause or resume the consumption of data.
  */
-int __testpoint_consumerd_thread_data(void);
+LTTNG_EXPORT int __testpoint_consumerd_thread_data(void);
 int __testpoint_consumerd_thread_data(void)
 {
        int ret = 0;
@@ -67,9 +67,9 @@ int __testpoint_consumerd_thread_data(void)
         * when launching the session daemon.
         */
        data_consumption_state = dlsym(NULL, "data_consumption_paused");
-       assert(data_consumption_state);
+       LTTNG_ASSERT(data_consumption_state);
        lttng_consumer_get_type = dlsym(NULL, "lttng_consumer_get_type");
-       assert(lttng_consumer_get_type);
+       LTTNG_ASSERT(lttng_consumer_get_type);
 
        switch (lttng_consumer_get_type()) {
        case LTTNG_CONSUMER_KERNEL:
@@ -107,7 +107,7 @@ end:
        return ret;
 }
 
-int __testpoint_consumerd_thread_data_poll(void);
+LTTNG_EXPORT int __testpoint_consumerd_thread_data_poll(void);
 int __testpoint_consumerd_thread_data_poll(void)
 {
        int ret = 0;
This page took 0.024666 seconds and 4 git commands to generate.