Skip to content

Commit

Permalink
2005-03-29 Thorsten Kukuk <kukuk@suse.de>
Browse files Browse the repository at this point in the history
	* posix/tst-execle1.c (do_test): Fix execle arguments.
	* posix/tst-execle2.c (do_test): Likewise.
  • Loading branch information
Roland McGrath committed Mar 29, 2005
1 parent 52febb7 commit 56abfa6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion posix/tst-execle1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
3 changes: 2 additions & 1 deletion posix/tst-execle2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 56abfa6

Please sign in to comment.