spawn-pipe tests: Avoid test failure on HP-UX 11.
authorBruno Haible <bruno@clisp.org>
Thu, 9 Jun 2011 09:37:58 +0000 (11:37 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 9 Jun 2011 09:37:58 +0000 (11:37 +0200)
* tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
is closed.

ChangeLog
tests/test-spawn-pipe-child.c

index a7c9ecc12b9be4503b7196f5ac0479892d880f23..016a558690b289c59949ab2e8c479c97f23127ef 100644 (file)
--- 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.
index eefecf9c10471e2d108a44ff5f026ba94b82e603..cf6689dba9f7e24199283e5f60f215a049fff0ef 100644 (file)
@@ -95,8 +95,12 @@ main (int argc, char *argv[])
       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);