From: Eric Blake Date: Tue, 6 Oct 2009 13:09:13 +0000 (-0600) Subject: test-symlink: port to GNU/Hurd X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48b0feac54dce2caf46cc53dd160e699737ff52a;p=pspp test-symlink: port to GNU/Hurd * tests/test-symlink.h (test_symlink): Relax expected errno. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index c2ed5773b3..ef050d76fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2009-10-06 Eric Blake + 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. diff --git a/tests/test-symlink.h b/tests/test-symlink.h index ef51564385..99072935c3 100644 --- a/tests/test-symlink.h +++ b/tests/test-symlink.h @@ -60,14 +60,14 @@ test_symlink (int (*func) (char const *, char const *), bool print) 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);