diff options
author | Pádraig Brady <P@draigBrady.com> | 2013-02-19 12:06:18 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-02-20 04:04:00 +0000 |
commit | b469fa044a81762a9eb0da92b4fb47467154c4f1 (patch) | |
tree | e32e55a7869aacc9789e0a818cf33134371fd8a3 /tests/du | |
parent | 5bff307bdbee76adad7a7990cc23d8fd43b76252 (diff) | |
download | coreutils-b469fa044a81762a9eb0da92b4fb47467154c4f1.tar.xz |
tests: avoid false failures on file systems with smaller NAME_MAX
* tests/du/long-from-unreadable.sh: This test requires a NAME_MAX
of at least 200, so skip the test otherwise.
* tests/rm/deep-2.sh: Likewise.
Reported by C de-Avillez with ecryptfs where NAME_MAX = 143.
Diffstat (limited to 'tests/du')
-rwxr-xr-x | tests/du/long-from-unreadable.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/du/long-from-unreadable.sh b/tests/du/long-from-unreadable.sh index 18bf384d6..ac1763a0e 100755 --- a/tests/du/long-from-unreadable.sh +++ b/tests/du/long-from-unreadable.sh @@ -31,6 +31,11 @@ . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ du +# ecryptfs for example uses some of the file name space +# for encrypting filenames, so we must check dynamically. +name_max=$(stat -f -c %l .) +test "$name_max" -ge '200' || skip_ "NAME_MAX=$name_max is not sufficient" + proc_file=/proc/self/fd if test ! -d $proc_file; then skip_ 'This test would fail, since your system lacks /proc support.' |