diff options
author | Roland McGrath <roland@gnu.org> | 2005-03-29 23:28:06 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2005-03-29 23:28:06 +0000 |
commit | dc9019d3aedfbed790747686eed9999d7b0429bc (patch) | |
tree | d78faf610c028f0d7df22b359260c626bbc3bce1 /posix | |
parent | 15772ca8e7f32fbbe33c40e40f337253f5af5d3b (diff) |
2005-03-29 Thorsten Kukuk <kukuk@suse.de>
* posix/tst-execle1.c (do_test): Fix execle arguments.
* posix/tst-execle2.c (do_test): Likewise.
Diffstat (limited to 'posix')
-rw-r--r-- | posix/tst-execle1.c | 3 | ||||
-rw-r--r-- | posix/tst-execle2.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/posix/tst-execle1.c b/posix/tst-execle1.c index adea0a8d46..bacf51b1a2 100644 --- a/posix/tst-execle1.c +++ b/posix/tst-execle1.c @@ -6,8 +6,9 @@ static int do_test (void) { static const char prog[] = "does-not-exist"; + char *env [] = {"FOO=BAR", NULL}; errno = 0; - execle (prog, prog, NULL, "FOO=BAR", NULL); + execle (prog, prog, NULL, env); if (errno != ENOENT) { diff --git a/posix/tst-execle2.c b/posix/tst-execle2.c index fb9b09b423..002d4c938f 100644 --- a/posix/tst-execle2.c +++ b/posix/tst-execle2.c @@ -45,8 +45,9 @@ prepare (int argc, char *argv[]) static int do_test (void) { + char *env[] = {"FOO=BAR", NULL}; errno = 0; - execle (copy, copy, NULL, "FOO=BAR", NULL); + execle (copy, copy, NULL, env); if (errno != EACCES) { |