* tests/test-link.c (main): Relax test for alternate error.
Signed-off-by: Eric Blake <ebb9@byu.net>
2009-09-09 Eric Blake <ebb9@byu.net>
+ test-link: allow Linux choice of errno
+ * tests/test-link.c (main): Relax test for alternate error.
+
strndup: fix improper m4 caching
* m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
ASSERT (errno == ENOTDIR);
errno = 0;
ASSERT (link (BASE "a", BASE "c/") == -1);
- ASSERT (errno == ENOTDIR);
+ ASSERT (errno == ENOTDIR || errno == ENOENT);
errno = 0;
ASSERT (link (BASE "d", BASE "c") == -1);
ASSERT (errno == EPERM || errno == EACCES);