From 02f8fd170b1c153bec96270b172f810064ad3254 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 7 Sep 2019 00:17:51 +0200 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ tests/test-symlink.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) 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); -- 2.39.5