The branch main has been updated by pho:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=9d2981f20d64b727cedd47ceeecd3b5c123ab5f2

commit 9d2981f20d64b727cedd47ceeecd3b5c123ab5f2
Author:     Peter Holm <[email protected]>
AuthorDate: 2025-12-12 09:19:23 +0000
Commit:     Peter Holm <[email protected]>
CommitDate: 2025-12-12 09:19:23 +0000

    stress2: Fix looping at exit and fix the cleanup
---
 tools/test/stress2/misc/pg_zero.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/test/stress2/misc/pg_zero.sh 
b/tools/test/stress2/misc/pg_zero.sh
index 4d34a59616e1..daec4b12283b 100755
--- a/tools/test/stress2/misc/pg_zero.sh
+++ b/tools/test/stress2/misc/pg_zero.sh
@@ -42,7 +42,7 @@ wr(void *arg __unused)
        int n;
 
        while (done != 1) {
-               while (go == 0) {
+               while (go == 0 && done != 1) {
                        usleep(10);
                }
                go = 2;
@@ -184,7 +184,7 @@ mdconfig -a -t vnode -f $diskimage -u $mdstart
 ../testcases/swap/swap -t 3m -i 20 -l 100 > /dev/null &
 sleep 3
 cd /tmp; ./$prog; s=$?; cd -
-pkill swap
+while pkill swap; do sleep .1; done
 wait
 rm -f /tmp/$prog.c /tmp/$prog $diskimage
 mdconfig -d -u $mdstart

Reply via email to