From 88e3fbcb5d6829f8980d6bb356b1c0cd7a38187b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 3 Jul 2005 04:40:34 +0000 Subject: linuxthreads, linuxthreads_db: Directories removed (preserved in ports repository). --- linuxthreads/tst-popen2.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 linuxthreads/tst-popen2.c (limited to 'linuxthreads/tst-popen2.c') diff --git a/linuxthreads/tst-popen2.c b/linuxthreads/tst-popen2.c deleted file mode 100644 index 3ff69acd52..0000000000 --- a/linuxthreads/tst-popen2.c +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include - -static void * -dummy (void *x) -{ - return NULL; -} - -static char buf[sizeof "something\n"]; - -static int -do_test (void) -{ - FILE *f; - pthread_t p; - int err; - - f = popen ("echo something", "r"); - if (f == NULL) - error (EXIT_FAILURE, errno, "popen failed"); - if (fgets (buf, sizeof (buf), f) == NULL) - error (EXIT_FAILURE, 0, "fgets failed"); - if (strcmp (buf, "something\n")) - error (EXIT_FAILURE, 0, "read wrong data"); - if (pclose (f)) - error (EXIT_FAILURE, errno, "pclose returned non-zero"); - if ((err = pthread_create (&p, NULL, dummy, NULL))) - error (EXIT_FAILURE, err, "pthread_create failed"); - if ((err = pthread_join (p, NULL))) - error (EXIT_FAILURE, err, "pthread_join failed"); - exit (0); -} - -#define TEST_FUNCTION do_test () -#include "../test-skeleton.c" -- cgit v1.2.3