Work around conflicting declarations of math functions
[glibc.git] / posix / tst-execv1.c
blob57ed1add6e23fd660ae64adb6d90f837e6a01b0f
1 #include <errno.h>
2 #include <stdio.h>
3 #include <unistd.h>
5 static int
6 do_test (void)
8 char *argv[] = { (char *) "does-not-exist", NULL };
9 errno = 0;
10 execv (argv[0], argv);
12 if (errno != ENOENT)
14 printf ("errno = %d (%m), expected ENOENT\n", errno);
15 return 1;
18 return 0;
21 #define TEST_FUNCTION do_test ()
22 #include "../test-skeleton.c"