* tests/test-link.h (test_link): Hurd rejects linking directories with EISDIR instead of the POSIX-mandated EPERM.
Signed-off-by: Eric Blake <ebl...@redhat.com> --- I'll be reporting this to the Hurd folks, but in the meantime, we might as well work around it. This was the only testsuite failure for m4 1.4.16 on Hurd. ChangeLog | 6 ++++++ tests/test-link.h | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ceff3bf..85a0e8b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-03-01 Eric Blake <ebl...@redhat.com> + + test-link: work on Hurd + * tests/test-link.h (test_link): Hurd rejects linking directories + with EISDIR instead of the POSIX-mandated EPERM. + 2011-02-28 Paul Eggert <egg...@cs.ucla.edu> stdio: simplify by moving files to printf-posix, sigpipe diff --git a/tests/test-link.h b/tests/test-link.h index 5898285..44ede54 100644 --- a/tests/test-link.h +++ b/tests/test-link.h @@ -136,13 +136,15 @@ test_link (int (*func) (char const *, char const *), bool print) else { /* Most everyone else. */ - ASSERT (errno == EPERM || errno == EACCES); + ASSERT (errno == EPERM || errno == EACCES || errno == EISDIR); errno = 0; ASSERT (func (BASE "d/.", BASE "c") == -1); - ASSERT (errno == EPERM || errno == EACCES || errno == EINVAL); + ASSERT (errno == EPERM || errno == EACCES || errno == EISDIR + || errno == EINVAL); errno = 0; ASSERT (func (BASE "d/.//", BASE "c") == -1); - ASSERT (errno == EPERM || errno == EACCES || errno == EINVAL); + ASSERT (errno == EPERM || errno == EACCES || errno == EISDIR + || errno == EINVAL); } } ASSERT (unlink (BASE "a") == 0); -- 1.7.4