diff options
author | Eric Blake <eblake@redhat.com> | 2011-03-01 16:27:51 -0700 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-03-01 16:27:51 -0700 |
commit | c36072eeb1ab0725dd73ae0c81e360d419b3eaf4 (patch) | |
tree | 65194dd20da5bedcd966e056f5ff6f6f73663128 /tests | |
parent | ef05ce61b0e5354256e0096c7dc022bf09bbf1d3 (diff) | |
download | gnulib-c36072eeb1ab0725dd73ae0c81e360d419b3eaf4.tar.gz |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-link.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test-link.h b/tests/test-link.h index 58982854b7..44ede5486e 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); |