From 99ef2719fb3d703fe38c4113cd7f5adec516dd3a Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 28 Oct 2016 20:29:21 +0200 Subject: test: remove test suite The test suite is now a developed in a separate git repository. See here: http://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng-test.git The test suite should be just like every other software compiled with the cross-toolchain. In the past strange problems where found when the test suite got build in the toolchain creation step. --- test/signal/tst-signalfd.c | 63 ---------------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 test/signal/tst-signalfd.c (limited to 'test/signal/tst-signalfd.c') diff --git a/test/signal/tst-signalfd.c b/test/signal/tst-signalfd.c deleted file mode 100644 index 1fbb748aa..000000000 --- a/test/signal/tst-signalfd.c +++ /dev/null @@ -1,63 +0,0 @@ -/* vi: set sw=4 ts=4 sts=4: */ -/* - * signalfd test for uClibc - * Copyright (C) 2012 by Kevin Cernekee - * - * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -static int -do_test(void) -{ - int fd, ret, result = 0; - struct signalfd_siginfo ssi; - sigset_t mask; - - sigemptyset(&mask); - sigaddset(&mask, SIGUSR1); - sigprocmask(SIG_BLOCK, &mask, NULL); - - fd = signalfd(-1, &mask, SFD_NONBLOCK); - if (fd < 0) { - printf("signalfd() failed: %s\n", strerror(errno)); - result = 1; - } - - /* this should return immediately with EAGAIN due to SFD_NONBLOCK */ - memset(&ssi, 0, sizeof(ssi)); - ret = read(fd, &ssi, sizeof(ssi)); - if (ret != -1 || errno != EAGAIN) { - error(0, 0, "first read() returned %d", ret); - result = 1; - } - - kill(getpid(), SIGUSR1); - - /* this should return a struct ssi indicating receipt of SIGUSR1 */ - ret = read(fd, &ssi, sizeof(ssi)); - if (ret != sizeof(ssi)) { - error(0, 0, "second read() returned %d", ret); - result = 1; - } - - if (ssi.ssi_signo != SIGUSR1) { - error(0, 0, "ssi contains bogus signo"); - result = 1; - } - - return result; -} - -#define TIMEOUT 5 -#define TEST_FUNCTION do_test () -#include "../test-skeleton.c" -- cgit v1.2.3