|
Last change
on this file was 2036, checked in by bird, 20 years ago |
|
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
|
File size:
424 bytes
|
| Line | |
|---|
| 1 | #include <errno.h>
|
|---|
| 2 | #include <stdio.h>
|
|---|
| 3 | #include <unistd.h>
|
|---|
| 4 |
|
|---|
| 5 | static int
|
|---|
| 6 | do_test (void)
|
|---|
| 7 | {
|
|---|
| 8 | char *argv[] = { (char *) "does-not-exist", NULL };
|
|---|
| 9 | char *envp[] = { (char *) "FOO=BAR", NULL };
|
|---|
| 10 | errno = 0;
|
|---|
| 11 | execve (argv[0], argv, envp);
|
|---|
| 12 |
|
|---|
| 13 | if (errno != ENOENT)
|
|---|
| 14 | {
|
|---|
| 15 | printf ("errno = %d (%m), expected ENOENT\n", errno);
|
|---|
| 16 | return 1;
|
|---|
| 17 | }
|
|---|
| 18 |
|
|---|
| 19 | return 0;
|
|---|
| 20 | }
|
|---|
| 21 |
|
|---|
| 22 | #define TEST_FUNCTION do_test ()
|
|---|
| 23 | #include "../test-skeleton.c"
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.