The branch main has been updated by pho:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=6b0ab5957084083d8c0910a9799d14d959b79d6c

commit 6b0ab5957084083d8c0910a9799d14d959b79d6c
Author:     Peter Holm <[email protected]>
AuthorDate: 2022-01-13 07:07:25 +0000
Commit:     Peter Holm <[email protected]>
CommitDate: 2022-01-13 07:07:25 +0000

    stress2: Added timeout to test.  Added cleanup.
---
 tools/test/stress2/misc/radix.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/test/stress2/misc/radix.sh b/tools/test/stress2/misc/radix.sh
index 9107f528deb9..fa85512c79c5 100755
--- a/tools/test/stress2/misc/radix.sh
+++ b/tools/test/stress2/misc/radix.sh
@@ -47,12 +47,14 @@ rm -f radix.c
 cd $odir
 
 set -e
+trap "rm -f rendezvous" EXIT INT
 parallel=1
 usermem=`sysctl hw.usermem | sed 's/.* //'`
 pagesize=`pagesize`
 start=`date +%s`
 while true; do
-       /tmp/radix $parallel > $log; s=$?
+       timeout 2m /tmp/radix $parallel > $log; s=$?
+       [ $s -eq 124 ] && { echo "Timed out"; break; }
        [ $s -ne 0 ] && cat $log
        used=`awk '{print $4}' < $log`
        [ -z "$used" ] && break

Reply via email to