Mercurial > hg > octave-nkf > gnulib-hg
changeset 14144:a0e5b3297968
remove test: Avoid failure on HP-UX 11.
* tests/test-remove.c (main): Allow EEXIST as alternative error code.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 07 Jan 2011 21:26:34 +0100 |
parents | a7da48531863 |
children | a94d9a7b4aaa |
files | ChangeLog tests/test-remove.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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.
--- 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