Commit 6b0ab595 authored by Peter Holm's avatar Peter Holm
Browse files

stress2: Added timeout to test. Added cleanup.

parent 623918a1
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment