X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fnotification%2Fdefault_pipe_size_getter.cpp;h=34eb3cdd35fd514498f1169da196239d7d1c0ecb;hb=HEAD;hp=843070b5923cd07dda15511d40d4f699085ec72d;hpb=7f530eeed9eb02a484a9d155bf3d294f61fd9c31;p=lttng-tools.git diff --git a/tests/regression/tools/notification/default_pipe_size_getter.cpp b/tests/regression/tools/notification/default_pipe_size_getter.cpp deleted file mode 100644 index 843070b59..000000000 --- a/tests/regression/tools/notification/default_pipe_size_getter.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/* - * default_pipe_size_getter.c - * - * Tests suite for LTTng notification API (get default size of pipes) - * - * Copyright (C) 2021 Jérémie Galarneau - * - * SPDX-License-Identifier: MIT - * - */ - -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif - -#include -#include -#include -#include - -#include -#include - -int lttng_opt_verbose; -int lttng_opt_mi; -int lttng_opt_quiet; - -int main(void) -{ - int ret; - /* - * The event notifier pipes are not "special"; they are created using - * the lttng_pipe utility. Hence, this should be representative of a - * pipe created by the session daemon for event notifier messages to - * go through. - */ - struct lttng_pipe *pipe = lttng_pipe_open(0); - - if (!pipe) { - /* lttng_pipe_open already logs on error. */ - ret = EXIT_FAILURE; - goto end; - } - - ret = fcntl(lttng_pipe_get_writefd(pipe), F_GETPIPE_SZ); - if (ret < 0) { - PERROR("Failed to get the size of the pipe"); - ret = EXIT_FAILURE; - goto end; - } - - printf("%d\n", ret); - ret = EXIT_SUCCESS; -end: - lttng_pipe_destroy(pipe); - return ret; -}