mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-01 05:02:03 +03:00
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:
@@ -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)
|
||||
{
|
||||
|
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user