Mercurial > hg > octave-kai > gnulib-hg
changeset 13511:d81cdd1015af
readlink: Relax test a bit.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 31 Jul 2010 12:23:44 +0200 |
parents | f8e55a0771f7 |
children | 2bc3108ae3f1 |
files | ChangeLog tests/test-readlink.h |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2010-07-31 Bruno Haible <bruno@clisp.org> + + readlink: Relax test a bit. + * tests/test-readlink.h (test_readlink): Allow different errno value + when readlink is called with a file name that ends in / and refers to + a file. + Suggested by Eric Blake. + Reported by Rainer Tammer. + 2010-07-31 Bruno Haible <bruno@clisp.org> copysign: Does not require -lm on glibc systems.
--- a/tests/test-readlink.h +++ b/tests/test-readlink.h @@ -51,7 +51,7 @@ ASSERT (errno == EINVAL); errno = 0; ASSERT (func (BASE "file/", buf, sizeof buf) == -1); - ASSERT (errno == ENOTDIR); + ASSERT (errno == ENOTDIR || errno == EINVAL); /* AIX yields EINVAL */ /* Now test actual symlinks. */ if (symlink (BASE "dir", BASE "link"))