The 'remove' test fails on HP-UX 11.11 and 11.31:

  test-remove.c:81: assertion failed
  sh[10]: 26604 Abort(coredump)
  FAIL: test-remove

The reason is that a particular remove() call fails with EEXIST, not with
the expected EINVAL or EBUSY. This patch fixes it. OK to commit?


2010-12-31  Bruno Haible  <br...@clisp.org>

        remove test: Avoid failure on HP-UX 11.
        * tests/test-remove.c (main): Allow EEXIST as alternative error code.

--- tests/test-remove.c.orig    Sat Jan  1 02:28:42 2011
+++ tests/test-remove.c Sat Jan  1 02:28:28 2011
@@ -78,7 +78,7 @@
   /* Empty directory.  */
   errno = 0;
   ASSERT (remove (BASE "dir/.//") == -1);
-  ASSERT (errno == EINVAL || errno == EBUSY);
+  ASSERT (errno == EINVAL || errno == EBUSY || errno == EEXIST);
   ASSERT (remove (BASE "dir") == 0);
 
   /* Test symlink behavior.  Specifying trailing slash should remove

Reply via email to