From 363971609279e4941f32dc4dcbc3155c763317af Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 9 Jun 2011 11:21:23 +0200 Subject: rmdir: Avoid test failure on HP-UX 10.20. * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like EEXIST. --- tests/test-rmdir.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test-rmdir.h') 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 -- cgit v1.2.1