Skip to content

Commit 34a7fc4

Browse files
authored
Merge pull request #196 from yizhanglinux/loop-006-fix
loop/006: fix the test failure with Bash 5.3 Yi Zhang reported the failure and provided the fix. Bash 5.3 enhances job wait and notification capabilities, and it looks causing the failure. I built bash 5.3 and recreated the failure. Also confirmed the commit avoids the failure.
2 parents b6b104b + bed196b commit 34a7fc4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/loop/006

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ test() {
5656
# Discard KILLED messages from bash...
5757
{
5858
kill -9 $switch_pid
59+
wait $switch_pid
5960
kill -9 $set_pid
60-
wait
61+
wait $set_pid
6162
sleep 1
6263
} 2>/dev/null
6364

0 commit comments

Comments
 (0)