diff options
| author | Peter Holm <pho@FreeBSD.org> | 2025-12-12 09:19:23 +0000 |
|---|---|---|
| committer | Peter Holm <pho@FreeBSD.org> | 2025-12-12 09:19:23 +0000 |
| commit | 9d2981f20d64b727cedd47ceeecd3b5c123ab5f2 (patch) | |
| tree | fcaa3ad6b3440d2337d5219418970db4ccf11e52 | |
| parent | 0247b4018de2c341ac59a585362c10044cea86ad (diff) | |
stress2: Fix looping at exit and fix the cleanup
| -rwxr-xr-x | tools/test/stress2/misc/pg_zero.sh | 4 |
1 files 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 |
