projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
autoupdate
[gnulib.git]
/
tests
/
test-spawn-pipe-child.c
diff --git
a/tests/test-spawn-pipe-child.c
b/tests/test-spawn-pipe-child.c
index
eefecf9
..
9929491
100644
(file)
--- a/
tests/test-spawn-pipe-child.c
+++ b/
tests/test-spawn-pipe-child.c
@@
-45,6
+45,8
@@
static FILE *myerr;
#undef close
#undef fcntl
#undef fdopen
#undef close
#undef fcntl
#undef fdopen
+#undef fflush
+#undef fprintf
#undef read
#undef write
#undef read
#undef write
@@
-95,8
+97,13
@@
main (int argc, char *argv[])
ASSERT (is_open (STDERR_FILENO));
break;
case 1:
ASSERT (is_open (STDERR_FILENO));
break;
case 1:
- /* Expect fd 2 is closed. */
+ /* Expect fd 2 is closed.
+ But on HP-UX 11, fd 2 gets automatically re-opened to /dev/null if it
+ was closed. Future POSIX will allow this, see
+ <http://austingroupbugs.net/view.php?id=173>. */
+#if !defined __hpux
ASSERT (! is_open (STDERR_FILENO));
ASSERT (! is_open (STDERR_FILENO));
+#endif
break;
default:
ASSERT (0);
break;
default:
ASSERT (0);