Mercurial > hg > octave-nkf > gnulib-hg
changeset 14899:5ac43decc87c
spawn-pipe tests: Avoid test failure on HP-UX 11.
* tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
is closed.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 09 Jun 2011 11:37:58 +0200 |
parents | d1e05397f517 |
children | 5a8dec171b5a |
files | ChangeLog tests/test-spawn-pipe-child.c |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-06-09 Bruno Haible <bruno@clisp.org> + + spawn-pipe tests: Avoid test failure on HP-UX 11. + * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2 + is closed. + 2011-06-09 Bruno Haible <bruno@clisp.org> acl tests: Fix compilation error on HP-UX 11.
--- a/tests/test-spawn-pipe-child.c +++ b/tests/test-spawn-pipe-child.c @@ -95,8 +95,12 @@ 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. */ +#if !defined __hpux ASSERT (! is_open (STDERR_FILENO)); +#endif break; default: ASSERT (0);