]> git.ipfire.org Git - thirdparty/glibc.git/blame - posix/tst-execv1.c
posix: Do not include testcases.h, ptestcases.h in source tree
[thirdparty/glibc.git] / posix / tst-execv1.c
CommitLineData
53e5696b
UD
1#include <errno.h>
2#include <stdio.h>
3#include <unistd.h>
4
5static int
6do_test (void)
7{
8 char *argv[] = { (char *) "does-not-exist", NULL };
9 errno = 0;
10 execv (argv[0], argv);
11
12 if (errno != ENOENT)
13 {
14 printf ("errno = %d (%m), expected ENOENT\n", errno);
15 return 1;
16 }
17
18 return 0;
19}
20
21#define TEST_FUNCTION do_test ()
22#include "../test-skeleton.c"