Updated to fedora-glibc-20050302T1820
[glibc.git] / posix / tst-execle1.c
blobadea0a8d466122d1ef291cf9adf0bf5ad5425d08
1 #include <errno.h>
2 #include <stdio.h>
3 #include <unistd.h>
5 static int
6 do_test (void)
8 static const char prog[] = "does-not-exist";
9 errno = 0;
10 execle (prog, prog, NULL, "FOO=BAR", NULL);
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"