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.

Collin

Reply via email to