mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-02-10 17:31:56 +02:00
tests: split: ensure directories not replaced
* tests/split/split-io-err.sh: Add a test case. From https://github.com/coreutils/coreutils/pull/158
This commit is contained in:
@@ -38,4 +38,10 @@ test -e xab && fail=1
|
||||
# Ensure we got the expected error message
|
||||
compare exp err || fail=1
|
||||
|
||||
rm xaa || framework_failure_
|
||||
# Similar for directory
|
||||
mkdir xaa || framework_failure_
|
||||
seq 2 | returns_ 1 split -b 1 2 || fail=1
|
||||
test -d xaa || fail=1
|
||||
|
||||
Exit $fail
|
||||
|
||||
Reference in New Issue
Block a user