From f385acc4611e9dce8f47287caf54ce644c4a2c53 Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Sun, 19 Aug 2012 13:38:53 +0000 Subject: [PATCH] =?UTF-8?q?From=20Toralf=20F=C3=B6rster=20via=20https://bu?= =?UTF-8?q?gs.wireshark.org/bugzilla/show=5Fbug.cgi=3Fid=3D7652?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use a fast bash built-in rather than a slow call out to `expr` to increment the loop count. svn path=/trunk/; revision=44580 --- tools/fuzz-test.sh | 2 +- tools/randpkt-test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/fuzz-test.sh b/tools/fuzz-test.sh index 8bf888c958..d890080340 100755 --- a/tools/fuzz-test.sh +++ b/tools/fuzz-test.sh @@ -213,7 +213,7 @@ function exit_error() { # Iterate over our capture files. PASS=0 while [ \( $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 \) -a $DONE -ne 1 ] ; do - PASS=`expr $PASS + 1` + let PASS=$PASS+1 echo "Starting pass $PASS:" RUN=0 diff --git a/tools/randpkt-test.sh b/tools/randpkt-test.sh index a241c08c37..2c251e6b66 100755 --- a/tools/randpkt-test.sh +++ b/tools/randpkt-test.sh @@ -104,7 +104,7 @@ function exit_error() { # Iterate over our capture files. PASS=0 while [ $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 ] ; do - PASS=`expr $PASS + 1` + let PASS=$PASS+1 echo "Pass $PASS:" for PKT_TYPE in $PKT_TYPES ; do