From: Bruno Haible Date: Fri, 6 Sep 2019 22:17:51 +0000 (+0200) Subject: symlink tests: Avoid test failure on Linux with Lustre file system. X-Git-Tag: v1.0~4678 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=02f8fd170b1c153bec96270b172f810064ad3254;p=gnulib.git symlink tests: Avoid test failure on Linux with Lustre file system. Reported by Thomas C Oppe at . * tests/test-symlink.h (test_symlink): Accept errno value ENOENT. --- diff --git a/ChangeLog b/ChangeLog index fbf95966d5..325552992d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2019-09-06 Bruno Haible + + symlink tests: Avoid test failure on Linux with Lustre file system. + Reported by Thomas C Oppe + at . + * tests/test-symlink.h (test_symlink): Accept errno value ENOENT. + 2019-09-01 Bruno Haible gitsub.sh: Add support for shallow-cloning of subdirectories. diff --git a/tests/test-symlink.h b/tests/test-symlink.h index c55634789e..8fd55c0171 100644 --- a/tests/test-symlink.h +++ b/tests/test-symlink.h @@ -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);