* 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>
+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
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);