X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Funit%2Ftest_kernel_data.c;h=134cd39ed1d7c27c25a6688705b3639e955df437;hp=ff1b75df4f3025f934398b6b9218dd4d34fda6cc;hb=9d16b343fb9e781fc8d8fa3c448a3f382306dd33;hpb=63aaa3dcfd221ac2bcdbc6b61d5e3fbaeca70165 diff --git a/tests/unit/test_kernel_data.c b/tests/unit/test_kernel_data.c index ff1b75df4..134cd39ed 100644 --- a/tests/unit/test_kernel_data.c +++ b/tests/unit/test_kernel_data.c @@ -1,19 +1,8 @@ /* - * Copyright (c) 2011 David Goulet + * Copyright (C) 2011 David Goulet * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * as published by the Free Software Foundation; only version 2 - * of the License. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -38,10 +27,6 @@ int lttng_opt_quiet = 1; int lttng_opt_verbose; int lttng_opt_mi; -struct notification_thread_handle *notification_thread_handle; - -int ust_consumerd32_fd; -int ust_consumerd64_fd; static const char alphanum[] = "0123456789" @@ -143,6 +128,7 @@ static void test_create_kernel_channel(void) static void test_create_kernel_event(void) { + enum lttng_error_code ret; struct ltt_kernel_event *event; struct lttng_event ev; @@ -153,8 +139,8 @@ static void test_create_kernel_event(void) ev.type = LTTNG_EVENT_TRACEPOINT; ev.loglevel_type = LTTNG_EVENT_LOGLEVEL_ALL; - event = trace_kernel_create_event(&ev, NULL, NULL); - ok(event != NULL, "Create kernel event"); + ret = trace_kernel_create_event(&ev, NULL, NULL, &event); + ok(ret == LTTNG_OK, "Create kernel event"); if (!event) { skip(1, "Event is null");