From: Jim Meyering Date: Thu, 12 Jan 2006 09:25:33 +0000 (+0000) Subject: skip the test on a system that can handle this many symlinks in a file name, X-Git-Tag: v6.0~882 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d7a6ee0f3d700d23ca9a9017ce3054771e24c9c;p=thirdparty%2Fcoreutils.git skip the test on a system that can handle this many symlinks in a file name, --- diff --git a/tests/du/long-sloop b/tests/du/long-sloop index 8e777dc521..f857e74db5 100755 --- a/tests/du/long-sloop +++ b/tests/du/long-sloop @@ -39,6 +39,18 @@ if test $framework_failure = 1; then (exit 1); exit 1 fi +# If a system can handle this many symlinks in a file name, +# just skip this test. +file=1`printf %${n}s ' '|sed 's, ,/s,g'` +cat $file > /dev/null 2>&1 && \ + { + cat <&2 +$0: Your systems appears to be able to handle more than $n symlinks +in file name resolution, so skipping this test. +EOF + (exit 77); exit 77 + } + fail=0 # With coreutils-5.93 there was no failure.