tests: extend csplit-io-err.sh for directory

* tests/csplit/csplit-io-err.sh: Add a test case
to ensure a directory is _not_ replaced.
This commit is contained in:
oech3 authored and Pádraig Brady committed 2026-01-01 11:50:07 +00:00
1 parent 75e314a11a
commit 6a2a781efd
1 file changed
+5
+5
View File
@@ -36,4 +36,9 @@ test -e xx01 && fail=1
# Ensure we got the expected error message
compare exp err || fail=1
# csplit does not remove xx01 directory
mkdir xx01 || framework_failure_
seq 2 | returns_ 1 csplit - 1 || fail=1
test -d xx01 || fail=1
Exit $fail