+2007-05-30 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
+ assuming that they are closed. Needed on HP-UX 11.
+
2007-05-29 Bruno Haible <bruno@clisp.org>
Fix a problem with #include_next.
break;
case '2': /* closed */
+ /* Explicitly close file descriptors 0 and 1. The <&- and >&- in the
+ invoking shell are not enough on HP-UX. */
+ close (0);
+ close (1);
errno = 0;
ASSERT (lseek (0, (off_t)0, SEEK_CUR) == -1);
ASSERT (errno == EBADF);