aboutsummaryrefslogtreecommitdiffstats
path: root/tools/randpkt-test.sh
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-04-18 16:10:08 +0000
committerGerald Combs <gerald@wireshark.org>2012-04-18 16:10:08 +0000
commit17febadb12f3213aee2816c0b58cc0059767bcca (patch)
tree6f621b4b8b5c695e6c784b7d1db810dca0957781 /tools/randpkt-test.sh
parentbb606959f7a98d11da61a6d13d92d1cd581052c1 (diff)
Terminate our inner loops as well.
svn path=/trunk/; revision=42134
Diffstat (limited to 'tools/randpkt-test.sh')
-rwxr-xr-xtools/randpkt-test.sh1
1 files changed, 1 insertions, 0 deletions
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