From 56abfa6be51f56c201b3fc7ae017becc0a720053 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 29 Mar 2005 23:27:01 +0000 Subject: 2005-03-29 Thorsten Kukuk * posix/tst-execle1.c (do_test): Fix execle arguments. * posix/tst-execle2.c (do_test): Likewise. --- posix/tst-execle1.c | 3 ++- posix/tst-execle2.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'posix') diff --git a/posix/tst-execle1.c b/posix/tst-execle1.c index adea0a8..bacf51b 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 fb9b09b..002d4c9 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) { -- cgit v1.1