diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/du/long-from-unreadable.sh | 5 | ||||
-rwxr-xr-x | tests/rm/deep-2.sh | 5 |
2 files changed, 10 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.' diff --git a/tests/rm/deep-2.sh b/tests/rm/deep-2.sh index a03cd965e..cb69db28d 100755 --- a/tests/rm/deep-2.sh +++ b/tests/rm/deep-2.sh @@ -25,6 +25,11 @@ require_perl_ # the offending euidaccess_stat call. skip_if_root_ +# 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" + mkdir x || framework_failure_ cd x || framework_failure_ |