Mercurial > hg > octave-kai > gnulib-hg
changeset 12126:6489be573ae5
test-symlink: port to GNU/Hurd
* tests/test-symlink.h (test_symlink): Relax expected errno.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Tue, 06 Oct 2009 07:09:13 -0600 |
parents | 6ade22f26c05 |
children | bda9467a9d66 |
files | ChangeLog tests/test-symlink.h |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2009-10-06 Eric Blake <ebb9@byu.net> + test-symlink: port to GNU/Hurd + * tests/test-symlink.h (test_symlink): Relax expected errno. + doc: tweak more cygwin information * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is now compatible with glibc.
--- a/tests/test-symlink.h +++ b/tests/test-symlink.h @@ -60,14 +60,14 @@ ASSERT (errno == EEXIST); errno = 0; ASSERT (func ("nowhere", BASE "dir/") == -1); - ASSERT (errno == EEXIST); + ASSERT (errno == EEXIST || errno == EINVAL); ASSERT (close (creat (BASE "file", 0600)) == 0); errno = 0; ASSERT (func ("nowhere", BASE "file") == -1); ASSERT (errno == EEXIST); errno = 0; ASSERT (func ("nowhere", BASE "file/") == -1); - ASSERT (errno == EEXIST || errno == ENOTDIR); + ASSERT (errno == EEXIST || errno == ENOTDIR || errno == ENOENT); ASSERT (rmdir (BASE "dir") == 0); ASSERT (unlink (BASE "file") == 0);