scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 662a454673e4a96419d38e246b87d3c09930465d
parent 0223a5c571adfc86ca419b5e40e22248842240cf
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 11 Jan 2025 07:35:13 +0100

tests/make: Don't disable timer while waiting for child

There were cases where the child didn't die and we had to wait
forever.

Diffstat:
Mtests/make/execute/0098-signal.sh | 5+++--
Mtests/make/execute/0099-signal.sh | 5+++--
Mtests/make/execute/0100-signal.sh | 5+++--
Mtests/make/execute/0101-signal.sh | 5+++--
Mtests/make/execute/0102-signal.sh | 5+++--
5 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/tests/make/execute/0098-signal.sh b/tests/make/execute/0098-signal.sh @@ -28,8 +28,9 @@ while : do if test -f file.txt then - kill $pid $timer 2>/dev/null - wait $pid $timer + kill $pid + wait $pid + kill $timer break fi done diff --git a/tests/make/execute/0099-signal.sh b/tests/make/execute/0099-signal.sh @@ -28,8 +28,9 @@ while : do if test -f test.txt then - kill $pid $timer 2>/dev/null - wait $pid $timer + kill $pid + wait $pid + kill $timer break fi done diff --git a/tests/make/execute/0100-signal.sh b/tests/make/execute/0100-signal.sh @@ -30,8 +30,9 @@ while : do if test -f test.txt then - kill $pid $timer 2>/dev/null - wait $pid $timer + kill $pid + wait $pid + kill $timer break fi done diff --git a/tests/make/execute/0101-signal.sh b/tests/make/execute/0101-signal.sh @@ -28,8 +28,9 @@ while : do if test -f test.txt then - kill $pid $timer 2>/dev/null - wait $pid $timer + kill $pid + wait $pid + kill $timer break fi done diff --git a/tests/make/execute/0102-signal.sh b/tests/make/execute/0102-signal.sh @@ -28,8 +28,9 @@ while : do if test -d adir then - kill $pid $timer 2>/dev/null - wait $pid $timer + kill $pid + wait $pid + kill $timer break fi done