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/inet/tst-sock-nonblock.c | 53 ------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 test/inet/tst-sock-nonblock.c (limited to 'test/inet/tst-sock-nonblock.c') diff --git a/test/inet/tst-sock-nonblock.c b/test/inet/tst-sock-nonblock.c deleted file mode 100644 index 54a7ee28a..000000000 --- a/test/inet/tst-sock-nonblock.c +++ /dev/null @@ -1,53 +0,0 @@ -/* vi: set sw=4 ts=4 sts=4: */ -/* - * Nonblocking socket 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 -#include - -static int -do_test(void) -{ - int fd, ret, result = 0; - struct sockaddr_un sa; - char buf; - - fd = socket(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK, 0); - if (fd < 0) { - perror("socket()"); - result = 1; - } - - memset(&sa, 0, sizeof(sa)); - sa.sun_family = AF_UNIX; - strcpy(sa.sun_path, "socktest"); - unlink("socktest"); - if (bind(fd, (const struct sockaddr *)&sa, sizeof(sa)) < 0) { - perror("bind()"); - result = 1; - } - - ret = read(fd, &buf, sizeof(buf)); - if (ret != -1 || errno != EAGAIN) { - error(0, 0, "Nonblocking read returned %d", ret); - result = 1; - } - - return result; -} - -#define TIMEOUT 5 -#define TEST_FUNCTION do_test () -#include "../test-skeleton.c" -- cgit v1.2.3