summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2017-01-18 09:17:46 -0800
committerGerald Combs <gerald@wireshark.org>2017-01-18 17:19:41 +0000
commitddb0f7d23c5b6d00592e7046577dd16a6f29d015 (patch)
treec85b1de450da878a08c1cf6a1a711441eaee8f4a /tools
parentcf941613da659ce2590ae51cdf90b78e8a5116c9 (diff)
downloadwireshark-ddb0f7d23c5b6d00592e7046577dd16a6f29d015.tar.gz
Update fuzz-test to match capinfos behavior.
As of gebd3dc6, capinfos returns 2 for invalid capture files. Change-Id: I00c1ab44c9929a9e922ac2a1ee8904632c1e460f Reviewed-on: https://code.wireshark.org/review/19667 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/fuzz-test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/fuzz-test.sh b/tools/fuzz-test.sh
index dec7c6e36a..0a0b74c567 100755
--- a/tools/fuzz-test.sh
+++ b/tools/fuzz-test.sh
@@ -171,7 +171,7 @@ while [ \( $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 \) -a $DONE -ne 1 ] ; do
"$CAPINFOS" "$CF" > /dev/null 2> $TMP_DIR/$ERR_FILE
RETVAL=$?
- if [ $RETVAL -eq 1 ] ; then
+ if [ $RETVAL -eq 2 ] ; then
echo "Not a valid capture file"
rm -f $TMP_DIR/$ERR_FILE
continue