build: Add missing DEFINE_LTTNG_UST_SIGBUS_STATE();
[lttng-tools.git] / tests / unit / test_kernel_data.c
index 4ce6f6c745b0bdff5820227e1c26d0f7b573bb50..58e7014422fb6bb68484025a96972460238bdef8 100644 (file)
@@ -6,15 +6,16 @@
  */
 
 #include <assert.h>
-#include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 #include <time.h>
 
+#include <common/compat/errno.h>
 #include <bin/lttng-sessiond/trace-kernel.h>
 #include <common/defaults.h>
+#include <lttng/ust-sigbus.h>
 
 #include <tap/tap.h>
 
 /* 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;
+DEFINE_LTTNG_UST_SIGBUS_STATE();
 
 static const char alphanum[] =
        "0123456789"
@@ -149,7 +147,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");
 
This page took 0.023793 seconds and 4 git commands to generate.