From 6a2a781efdb5088fb3f23ce78057d2513f78030e Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Thu, 1 Jan 2026 13:45:30 +0900 Subject: [PATCH] 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. --- tests/csplit/csplit-io-err.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/csplit/csplit-io-err.sh b/tests/csplit/csplit-io-err.sh index 358d937ce..d853f8bff 100755 --- a/tests/csplit/csplit-io-err.sh +++ b/tests/csplit/csplit-io-err.sh @@ -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