diff options
author | Bruno Haible <bruno@clisp.org> | 2011-06-09 11:21:23 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-06-09 11:21:23 +0200 |
commit | 363971609279e4941f32dc4dcbc3155c763317af (patch) | |
tree | 17a2cfc059ab8a06b8b58636b11f479cec61eda4 /tests/test-rmdir.h | |
parent | e73b278d326a9707a8d167fd48a78093051e964d (diff) | |
download | gnulib-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.h | 3 |
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 |