From: oech3 <79379754+oech3@users.noreply.github.com> Date: Thu, 9 Apr 2026 04:52:50 +0000 (+0900) Subject: tests: tee: ensure intermittent data is handled X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00ba75a02a2ff7e87019f61b94b72d1405ff4d33;p=thirdparty%2Fcoreutils.git tests: tee: ensure intermittent data is handled * tests/tee/tee.sh: Add test case for input from pipe containing sleep. https://github.com/coreutils/coreutils/pull/247 --- diff --git a/tests/tee/tee.sh b/tests/tee/tee.sh index 41d1b9acd1..81b6d902be 100755 --- a/tests/tee/tee.sh +++ b/tests/tee/tee.sh @@ -21,6 +21,11 @@ print_ver_ tee echo line >sample || framework_failure_ +# Ensure tee detects EOF correctly +printf "1\n2\n" > exp || framework_failure_ +(echo 1;sleep .1;echo 2) | tee > out || fail=1 +compare exp out || fail=1 + # POSIX says: "Processing of at least 13 file operands shall be supported." for n in 0 1 2 12 13; do files=$(seq $n)