1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-18 13:21:58 +02:00

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
This commit is contained in:
Jim Meyering
2014-10-07 18:08:25 -07:00
parent 560dad02c3
commit fcbbf1cdb8

View File

@@ -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