2005-03-29 Thorsten Kukuk <kukuk@suse.de>

* posix/tst-execle1.c (do_test): Fix execle arguments.
	* posix/tst-execle2.c (do_test): Likewise.
This commit is contained in:
Roland McGrath 2005-03-29 23:27:01 +00:00
parent 52febb7316
commit 56abfa6be5
2 changed files with 4 additions and 2 deletions

View File

@ -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)
{

View File

@ -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)
{