From 1170bc9489c8448657cf5a5ccb21626f444bb68b Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Fri, 2 Jan 2026 01:03:41 +0900 Subject: [PATCH] tests: split: ensure directories not replaced * tests/split/split-io-err.sh: Add a test case. From https://github.com/coreutils/coreutils/pull/158 --- tests/split/split-io-err.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/split/split-io-err.sh b/tests/split/split-io-err.sh index a1faae4bc..3eb9dbb93 100755 --- a/tests/split/split-io-err.sh +++ b/tests/split/split-io-err.sh @@ -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