summaryrefslogtreecommitdiff
path: root/gnulib-tests/test-symlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib-tests/test-symlink.h')
-rw-r--r--gnulib-tests/test-symlink.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnulib-tests/test-symlink.h b/gnulib-tests/test-symlink.h
index ddc8994..da6b184 100644
--- a/gnulib-tests/test-symlink.h
+++ b/gnulib-tests/test-symlink.h
@@ -1,5 +1,5 @@
/* Tests of symlink.
- Copyright (C) 2009-2018 Free Software Foundation, Inc.
+ Copyright (C) 2009-2020 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -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);