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 c2ed5773b38c53caa60b1e2af0595865f90e596c..ef050d76fadf8f2e3669c824419f176c82eccedb 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 ef51564385f295bc2023cbee83e5f8151a210388..99072935c3838aeb10f09dbc60bcd306411ef641 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);