Mercurial > hg > octave-lojdl > gnulib-hg
changeset 14403:9e98f6d3aacd
test-link: work on Hurd
* tests/test-link.h (test_link): Hurd rejects linking directories
with EISDIR instead of the POSIX-mandated EPERM.
Signed-off-by: Eric Blake <eblake@redhat.com>
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Tue, 01 Mar 2011 16:27:51 -0700 |
parents | 57da5afce380 |
children | a70426a67033 |
files | ChangeLog tests/test-link.h |
diffstat | 2 files changed, 11 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-03-01 Eric Blake <eblake@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 <eggert@cs.ucla.edu> stdio: simplify by moving files to printf-posix, sigpipe
--- a/tests/test-link.h +++ b/tests/test-link.h @@ -136,13 +136,15 @@ 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);