mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00: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:
parent
52febb7316
commit
56abfa6be5
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user