]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: extend csplit-io-err.sh for directory
authoroech3 <79379754+oech3@users.noreply.github.com>
Thu, 1 Jan 2026 04:45:30 +0000 (13:45 +0900)
committerPádraig Brady <P@draigBrady.com>
Thu, 1 Jan 2026 11:50:07 +0000 (11:50 +0000)
* tests/csplit/csplit-io-err.sh: Add a test case
to ensure a directory is _not_ replaced.

tests/csplit/csplit-io-err.sh

index 358d937ce836c6d35dda3105da6f07322e810e7a..d853f8bff2e434c10c24d34a8128803d627d9125 100755 (executable)
@@ -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