diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-04-18 16:10:08 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-04-18 16:10:08 +0000 |
commit | 17febadb12f3213aee2816c0b58cc0059767bcca (patch) | |
tree | 6f621b4b8b5c695e6c784b7d1db810dca0957781 /tools | |
parent | bb606959f7a98d11da61a6d13d92d1cd581052c1 (diff) |
Terminate our inner loops as well.
svn path=/trunk/; revision=42134
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/fuzz-test.sh | 1 | ||||
-rwxr-xr-x | tools/randpkt-test.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/fuzz-test.sh b/tools/fuzz-test.sh index f6d9290d91..06e37aa68d 100755 --- a/tools/fuzz-test.sh +++ b/tools/fuzz-test.sh @@ -185,6 +185,7 @@ while [ $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 ] ; do RUN=0 for CF in "$@" ; do + if [ $PASS -gt $MAX_PASSES ] ; then break ; fi # We caught a signal RUN=$(( $RUN + 1 )) if [ $(( $RUN % 50 )) -eq 0 ] ; then echo " [Pass $PASS]" diff --git a/tools/randpkt-test.sh b/tools/randpkt-test.sh index b55787a00b..176e53cd7d 100755 --- a/tools/randpkt-test.sh +++ b/tools/randpkt-test.sh @@ -89,6 +89,7 @@ while [ $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 ] ; do echo "Pass $PASS:" for PKT_TYPE in $PKT_TYPES ; do + if [ $PASS -gt $MAX_PASSES ] ; then break ; fi # We caught a signal echo -n " $PKT_TYPE: " DISSECTOR_BUG=0 |