From: Jim Meyering Date: Wed, 8 Oct 2014 01:08:25 +0000 (-0700) Subject: tests: split/b-chunk.sh: avoid spurious fail on non-Linux X-Git-Tag: v8.24~203 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcbbf1cdb8cf65cdbb47522e9e7eefcbe752406e;p=thirdparty%2Fcoreutils.git tests: split/b-chunk.sh: avoid spurious fail on non-Linux * tests/split/b-chunk.sh: Skip each file that does not exist. Some systems lack /proc/version or /sys/kernel/profiling --- diff --git a/tests/split/b-chunk.sh b/tests/split/b-chunk.sh index 5938a74442..e247a699e0 100755 --- a/tests/split/b-chunk.sh +++ b/tests/split/b-chunk.sh @@ -32,6 +32,8 @@ stat x?? 2>/dev/null && fail=1 printf '1\n2\n3\n4\n5\n' > input || framework_failure_ for file in input /proc/version /sys/kernel/profiling; do + test -f $file || continue + split -n 3 $file > out || fail=1 split -n 1/3 $file > b1 || fail=1 split -n 2/3 $file > b2 || fail=1