about summary refs log tree commit diff
path: root/posix/tst-execle1.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-03-29 23:27:01 +0000
committerRoland McGrath <roland@gnu.org>2005-03-29 23:27:01 +0000
commit56abfa6be51f56c201b3fc7ae017becc0a720053 (patch)
treefd913f4f02035ea1dca41a1d8e76be26bab36f0c /posix/tst-execle1.c
parent52febb73162d62bc09db1faf737b1ed3f295cc7c (diff)
downloadglibc-56abfa6be51f56c201b3fc7ae017becc0a720053.tar.gz
glibc-56abfa6be51f56c201b3fc7ae017becc0a720053.tar.xz
glibc-56abfa6be51f56c201b3fc7ae017becc0a720053.zip
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/tst-execle1.c')
-rw-r--r--posix/tst-execle1.c3
1 files changed, 2 insertions, 1 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)
     {