test-symlink: port to GNU/Hurd
authorEric Blake <ebb9@byu.net>
Tue, 6 Oct 2009 13:09:13 +0000 (07:09 -0600)
committerEric Blake <ebb9@byu.net>
Wed, 7 Oct 2009 03:51:28 +0000 (21:51 -0600)
* tests/test-symlink.h (test_symlink): Relax expected errno.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
tests/test-symlink.h

index c2ed577..ef050d7 100644 (file)
--- 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.
index ef51564..9907293 100644 (file)
@@ -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);