From: oech3 <79379754+oech3@users.noreply.github.com> Date: Thu, 1 Jan 2026 04:45:30 +0000 (+0900) Subject: tests: extend csplit-io-err.sh for directory X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a2a781efdb5088fb3f23ce78057d2513f78030e;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/tests/csplit/csplit-io-err.sh b/tests/csplit/csplit-io-err.sh index 358d937ce8..d853f8bff2 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