# HG changeset patch # User Bruno Haible # Date 1294431994 -3600 # Node ID a0e5b329796848a43b45dc86f828f18239345b92 # Parent a7da48531863e82107b96a472686a5334a063835 remove test: Avoid failure on HP-UX 11. * tests/test-remove.c (main): Allow EEXIST as alternative error code. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-01-07 Bruno Haible + + remove test: Avoid failure on HP-UX 11. + * tests/test-remove.c (main): Allow EEXIST as alternative error code. + 2011-01-07 Bruno Haible mkdir, mkdirat tests: Avoid failure on HP-UX 11.11. diff --git a/tests/test-remove.c b/tests/test-remove.c --- a/tests/test-remove.c +++ b/tests/test-remove.c @@ -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