X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Funit%2Ftest_kernel_data.c;h=5847729bde2ef08cbb1b6d04775389c7878de010;hb=90c106c686bee2d1dedf1496140f9291d3b16799;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..5847729bd 100644 --- a/tests/unit/test_kernel_data.c +++ b/tests/unit/test_kernel_data.c @@ -1,18 +1,18 @@ /* - * Copyright (C) 2011 David Goulet + * Copyright (C) 2011 EfficiOS Inc. * * SPDX-License-Identifier: GPL-2.0-only * */ #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");