mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03: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:
1 parent
560dad02c3
commit
fcbbf1cdb8
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user