X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fnotification%2Fconsumer_testpoints.c;h=c4fc0a0572f3d688b6b557118e30b25545a2d3ce;hb=a0377dfefe40662ba7d68617bce6ff467114136c;hp=c437216068c137177c135f07ec61dc52ead067a1;hpb=9d16b343fb9e781fc8d8fa3c448a3f382306dd33;p=lttng-tools.git diff --git a/tests/regression/tools/notification/consumer_testpoints.c b/tests/regression/tools/notification/consumer_testpoints.c index c43721606..c4fc0a057 100644 --- a/tests/regression/tools/notification/consumer_testpoints.c +++ b/tests/regression/tools/notification/consumer_testpoints.c @@ -14,7 +14,6 @@ #include #include #include -#include #include static char *pause_pipe_path; @@ -47,6 +46,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); int __testpoint_consumerd_thread_data(void) { int ret = 0; @@ -66,9 +66,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: @@ -106,6 +106,7 @@ end: return ret; } +int __testpoint_consumerd_thread_data_poll(void); int __testpoint_consumerd_thread_data_poll(void) { int ret = 0;