remove test: Avoid failure on HP-UX 11.
authorBruno Haible <bruno@clisp.org>
Fri, 7 Jan 2011 20:26:34 +0000 (21:26 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 7 Jan 2011 20:26:34 +0000 (21:26 +0100)
* tests/test-remove.c (main): Allow EEXIST as alternative error code.

ChangeLog
tests/test-remove.c

index 08486f7..214023b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2011-01-07  Bruno Haible  <bruno@clisp.org>
 
+       remove test: Avoid failure on HP-UX 11.
+       * tests/test-remove.c (main): Allow EEXIST as alternative error code.
+
+2011-01-07  Bruno Haible  <bruno@clisp.org>
+
        mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
        * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
        error code.
index 3ea9a9d..15d5f27 100644 (file)
@@ -78,7 +78,7 @@ main (void)
   /* 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