projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vasnprintf: Add more tests.
[gnulib.git]
/
tests
/
test-posix_spawn2.c
diff --git
a/tests/test-posix_spawn2.c
b/tests/test-posix_spawn2.c
index
826d38b
..
d76c25c
100644
(file)
--- a/
tests/test-posix_spawn2.c
+++ b/
tests/test-posix_spawn2.c
@@
-1,5
+1,5
@@
/* Test of posix_spawn() function.
/* Test of posix_spawn() function.
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008
, 2009, 2010
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-33,16
+33,6
@@
extern char **environ;
extern char **environ;
-#ifndef STDIN_FILENO
-# define STDIN_FILENO 0
-#endif
-#ifndef STDOUT_FILENO
-# define STDOUT_FILENO 1
-#endif
-#ifndef STDERR_FILENO
-# define STDERR_FILENO 2
-#endif
-
#define CHILD_PROGRAM_FILENAME "test-posix_spawn2.sh"
static int
#define CHILD_PROGRAM_FILENAME "test-posix_spawn2.sh"
static int
@@
-105,9
+95,9
@@
main ()
|| (err = posix_spawnp (&child, "/bin/sh", &actions, &attrs, argv, environ)) != 0))
{
if (actions_allocated)
|| (err = posix_spawnp (&child, "/bin/sh", &actions, &attrs, argv, environ)) != 0))
{
if (actions_allocated)
- posix_spawn_file_actions_destroy (&actions);
+
posix_spawn_file_actions_destroy (&actions);
if (attrs_allocated)
if (attrs_allocated)
- posix_spawnattr_destroy (&attrs);
+
posix_spawnattr_destroy (&attrs);
sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL);
errno = err;
perror ("subprocess failed");
sigprocmask (SIG_UNBLOCK, &fatal_signal_set, NULL);
errno = err;
perror ("subprocess failed");