Mercurial > hg > octave-kai > gnulib-hg
changeset 14048:2defc00f2b21
linkat test: Avoid failure on Solaris 11 2010-11.
* tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 27 Dec 2010 20:18:17 +0100 |
parents | 126b2fb2abab |
children | fc0c7d9c14f8 |
files | ChangeLog tests/test-linkat.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-12-27 Bruno Haible <bruno@clisp.org> + + linkat test: Avoid failure on Solaris 11 2010-11. + * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code. + 2010-12-27 Paul Eggert <eggert@cs.ucla.edu> utimens: work around glibc rounding bug on more platforms
--- a/tests/test-linkat.c +++ b/tests/test-linkat.c @@ -180,7 +180,7 @@ ASSERT (errno == EEXIST || errno == EPERM || errno == EACCES); errno = 0; ASSERT (linkat (dfd, BASE "link1", dfd, BASE "sub1/", 0) == -1); - ASSERT (errno == EEXIST); + ASSERT (errno == EEXIST || errno == ENOTDIR); errno = 0; ASSERT (linkat (dfd, BASE "link1", dfd, BASE "sub1", AT_SYMLINK_FOLLOW) == -1);