X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Funit%2Ftest_kernel_data.c;h=21ec911f20c810d619fe261a58946b614fe28917;hb=48c6e03eea420ef54803281945f3b1d2cf82e031;hp=4ce6f6c745b0bdff5820227e1c26d0f7b573bb50;hpb=674c3e2c8477aafe7b2145861ad83dd041d59018;p=lttng-tools.git diff --git a/tests/unit/test_kernel_data.c b/tests/unit/test_kernel_data.c index 4ce6f6c74..21ec911f2 100644 --- a/tests/unit/test_kernel_data.c +++ b/tests/unit/test_kernel_data.c @@ -6,13 +6,13 @@ */ #include -#include #include #include #include #include #include +#include #include #include @@ -23,10 +23,10 @@ /* Number of TAP tests in this file */ #define NUM_TESTS 11 -/* For error.h */ -int lttng_opt_quiet = 1; -int lttng_opt_verbose; -int lttng_opt_mi; +#ifdef HAVE_LIBLTTNG_UST_CTL +#include +DEFINE_LTTNG_UST_SIGBUS_STATE(); +#endif static const char alphanum[] = "0123456789" @@ -149,7 +149,7 @@ static void test_create_kernel_event(void) ok(event->fd == -1 && event->enabled == 1 && - event->event->instrumentation == LTTNG_KERNEL_TRACEPOINT && + event->event->instrumentation == LTTNG_KERNEL_ABI_TRACEPOINT && strlen(event->event->name), "Validate kernel event");