summaryrefslogtreecommitdiff
path: root/test/unistd/errno.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/unistd/errno.c')
-rw-r--r--test/unistd/errno.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/test/unistd/errno.c b/test/unistd/errno.c
deleted file mode 100644
index 5d4fc726a..000000000
--- a/test/unistd/errno.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* based originally on one the clone tests in the LTP */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <sched.h>
-#include "clone_cruft.h"
-
-__attribute__ ((__noreturn__))
-static int child_fn(void *arg)
-{
- fprintf(stderr, "in child_fn\n");
- exit(1);
-}
-
-int main(void)
-{
- int r_clone, ret_errno;
-
- r_clone = do_clone(child_fn, NULL, 0, NULL);
- ret_errno = errno;
- if (ret_errno != EINVAL || r_clone != -1) {
- fprintf(stderr, "clone: res=%d (wanted -1) errno=%d (wanted %d)\n",
- r_clone, errno, EINVAL);
- return 1;
- }
-
- return 0;
-}