summaryrefslogtreecommitdiff
path: root/tests/test-rmdir.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-06-09 11:21:23 +0200
committerBruno Haible <bruno@clisp.org>2011-06-09 11:21:23 +0200
commit363971609279e4941f32dc4dcbc3155c763317af (patch)
tree17a2cfc059ab8a06b8b58636b11f479cec61eda4 /tests/test-rmdir.h
parente73b278d326a9707a8d167fd48a78093051e964d (diff)
downloadgnulib-363971609279e4941f32dc4dcbc3155c763317af.tar.gz
rmdir: Avoid test failure on HP-UX 10.20.
* tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like EEXIST.
Diffstat (limited to 'tests/test-rmdir.h')
-rw-r--r--tests/test-rmdir.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-rmdir.h b/tests/test-rmdir.h
index 757d030638..476b307d10 100644
--- a/tests/test-rmdir.h
+++ b/tests/test-rmdir.h
@@ -66,7 +66,8 @@ test_rmdir_func (int (*func) (char const *name), bool print)
ASSERT (unlink (BASE "dir/file") == 0);
errno = 0;
ASSERT (func (BASE "dir/.//") == -1);
- ASSERT (errno == EINVAL || errno == EBUSY || errno == EEXIST);
+ ASSERT (errno == EINVAL || errno == EBUSY || errno == EEXIST
+ || errno == ENOTEMPTY);
ASSERT (func (BASE "dir") == 0);
/* Test symlink behavior. Specifying trailing slash should remove