]> Savannah Git Hosting - gnulib.git/commitdiff
symlink tests: Avoid test failure on Linux with Lustre file system.
authorBruno Haible <bruno@clisp.org>
Fri, 6 Sep 2019 22:17:51 +0000 (00:17 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 6 Sep 2019 22:17:51 +0000 (00:17 +0200)
Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.

* tests/test-symlink.h (test_symlink): Accept errno value ENOENT.

ChangeLog
tests/test-symlink.h

index fbf95966d53157150e29ed6abf3bf45d5f2c2ee6..325552992dcdb98b1c1003bd7a669bd09247119d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2019-09-06  Bruno Haible  <bruno@clisp.org>
+
+       symlink tests: Avoid test failure on Linux with Lustre file system.
+       Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
+       at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
+       * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
+
 2019-09-01  Bruno Haible  <bruno@clisp.org>
 
        gitsub.sh: Add support for shallow-cloning of subdirectories.
index c55634789e5bdbb511c55c140af17415d69add94..8fd55c01719d048813f115e6614e22a151b8c6cc 100644 (file)
@@ -67,7 +67,8 @@ test_symlink (int (*func) (char const *, char const *), bool print)
   ASSERT (errno == EEXIST);
   errno = 0;
   ASSERT (func ("nowhere", BASE "dir/") == -1);
-  ASSERT (errno == EEXIST || errno == EINVAL);
+  ASSERT (errno == EEXIST || errno == EINVAL
+          || errno == ENOENT /* Lustre FS on Linux */);
   ASSERT (close (creat (BASE "file", 0600)) == 0);
   errno = 0;
   ASSERT (func ("nowhere", BASE "file") == -1);