X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Funit%2Ftest_kernel_data.c;h=5847729bde2ef08cbb1b6d04775389c7878de010;hb=717918b72e07062b62f96baaf1ae480b0a929617;hp=d575d25180fc31748add8778821ad0b3cb6acdb0;hpb=edf4b93e2f5c849cbec49e987990b3705ea49f6a;p=lttng-tools.git diff --git a/tests/unit/test_kernel_data.c b/tests/unit/test_kernel_data.c index d575d2518..5847729bd 100644 --- a/tests/unit/test_kernel_data.c +++ b/tests/unit/test_kernel_data.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 David Goulet + * Copyright (C) 2011 EfficiOS Inc. * * SPDX-License-Identifier: GPL-2.0-only * @@ -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");