Mercurial > hg > octave-lyh > gnulib-hg
changeset 11984:2a51ec9a6c14
test-link: allow Linux choice of errno
* tests/test-link.c (main): Relax test for alternate error.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Wed, 09 Sep 2009 21:46:11 -0600 |
parents | 5f256f637c47 |
children | f0be7f1ebc58 |
files | ChangeLog tests/test-link.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 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.
--- a/tests/test-link.c +++ b/tests/test-link.c @@ -139,7 +139,7 @@ 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);