mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
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.
This commit is contained in:
1 parent
5bff307bdb
commit
b469fa044a
2 files changed
+10
No files matched your search
@@ -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.'
|
||||
|
||||
@@ -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_
|
||||
|
||||
|
||||
Reference in new issue
Block a user