tests: avoid spurious assertion failure in test-float.c on ppc64
[gnulib.git] / tests / test-spawn-pipe-child.c
index eefecf9..9929491 100644 (file)
@@ -45,6 +45,8 @@ static FILE *myerr;
 #undef close
 #undef fcntl
 #undef fdopen
+#undef fflush
+#undef fprintf
 #undef read
 #undef write
 
@@ -95,8 +97,13 @@ 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. Future POSIX will allow this, see
+         <http://austingroupbugs.net/view.php?id=173>.  */
+#if !defined __hpux
       ASSERT (! is_open (STDERR_FILENO));
+#endif
       break;
     default:
       ASSERT (0);