diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-10-03 16:39:35 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-10-03 16:39:35 +0000 |
commit | a5b9de38b4f46952e943e2f8a840f4fa33e79b48 (patch) | |
tree | 26d2f1b613981db3c96684eacc6af9139bdce79d /tools | |
parent | ac6e9cbb8b42ecc3b88708b1ba0176c3de41ea64 (diff) |
Fix return code checking (hopefully).
svn path=/trunk/; revision=45289
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/fuzz-test.sh | 2 | ||||
-rwxr-xr-x | 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 c8b0fb8ae7..8c2cdeb674 100755 --- a/tools/fuzz-test.sh +++ b/tools/fuzz-test.sh @@ -261,7 +261,7 @@ while [ \( $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 \) -a $DONE -ne 1 ] ; do "$RUNNER" $ARGS $TMP_DIR/$TMP_FILE \ > /dev/null 2>> $TMP_DIR/$ERR_FILE RETVAL=$? - if [ $RETVAL -ge 128 ] ; then break ; fi + if [ $RETVAL -ne 0 ] ; then break ; fi done # Uncomment the next two lines to enable dissector bug diff --git a/tools/randpkt-test.sh b/tools/randpkt-test.sh index 0195b7e45c..5f9ca0c806 100755 --- a/tools/randpkt-test.sh +++ b/tools/randpkt-test.sh @@ -125,7 +125,7 @@ while [ $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 ] ; do "$TSHARK" $ARGS $TMP_DIR/$TMP_FILE \ > /dev/null 2> $TMP_DIR/$ERR_FILE RETVAL=$? - if [ $RETVAL -ge 128 ] ; then break ; fi + if [ $RETVAL -ne 0 ] ; then break ; fi done grep -i "dissector bug" $TMP_DIR/$ERR_FILE \ > /dev/null 2>&1 && DISSECTOR_BUG=1 |