]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: split: ensure no files created with no input
authoroech3 <79379754+oech3@users.noreply.github.com>
Wed, 17 Jun 2026 09:12:18 +0000 (18:12 +0900)
committerPádraig Brady <P@draigBrady.com>
Thu, 18 Jun 2026 13:20:35 +0000 (14:20 +0100)
* tests/split/split-io-err.sh: Ensure 'xaa' is not opened/created
with empty input.
https://github.com/coreutils/coreutils/pull/297

tests/split/split-io-err.sh

index 2e3b3f632d93d7b09d17e23decb450e746a76214..e2dfea829cda095d70b5141926225250abf8e836 100755 (executable)
@@ -41,4 +41,7 @@ mkdir xaa || framework_failure_
 seq 2 | returns_ 1 split -b 1 2 || fail=1
 test -d xaa || fail=1
 
+# Ensure no file is created without input
+split < /dev/null || fail=1
+
 Exit $fail