On 25/11/2026 04:43, Collin Funk wrote:
Bruno Haible <[email protected]> writes:
+ read_fifo
+ timeout 10 dd count=1 if=fifo of=/dev/null status=none
+ yes
yes: standard output: Broken pipe
+ pipe_status=1
+ yes
+ dd count=0 oflag=nonblock status=none
+ sleep .5
+ returns_ 1 timeout 10 tee
+ touch tee.fail
yes: standard output: Broken pipe
+ test -f tee.fail
+ fail=1
It looks like GitHub Actions runners ignore SIGPIPE. I confirmed that
the following patch lets it pass, but I'll hold off on pushing because I
have a feeling there is a better solution to this that I can't think of
at the moment:
diff --git a/tests/tee/tee.sh b/tests/tee/tee.sh
index d2f0ed4da..20f1fbd36 100755
--- a/tests/tee/tee.sh
+++ b/tests/tee/tee.sh
@@ -125,7 +125,8 @@ pipe_status=$?
yes |
{
dd count=0 oflag=nonblock status=none
- returns_ $pipe_status timeout 10 tee || touch tee.fail
+ timeout 10 tee
+ case $? in 0|$pipe_status) ;; *) touch tee.fail ;; esac
} | sleep .5
test -f tee.fail && fail=1
I also see that tests/cp/special-bits.sh is failing on BSD and
Solaris. I'll have a look at that today or tomorrow.
Oh interesting. I usually do a test run with SIGPIPE ignored
before doing a release. It's interesting github CI also
ignores SIGPIPE. That seems generally problematic, especially
for a CI framework where you don't want to inadvertently spin CPU.
Anyway, yes I can repro with:
$ (trap '' PIPE && make check SUBDIRS=. TESTS=tests/tee/tee.sh)
The fix looks good to me.
thanks,
Padraig