diff options
author | Gerald Combs <gerald@wireshark.org> | 2017-01-18 09:17:46 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2017-01-18 17:19:41 +0000 |
commit | ddb0f7d23c5b6d00592e7046577dd16a6f29d015 (patch) | |
tree | c85b1de450da878a08c1cf6a1a711441eaee8f4a | |
parent | cf941613da659ce2590ae51cdf90b78e8a5116c9 (diff) | |
download | wireshark-ddb0f7d23c5b6d00592e7046577dd16a6f29d015.tar.gz wireshark-ddb0f7d23c5b6d00592e7046577dd16a6f29d015.tar.bz2 wireshark-ddb0f7d23c5b6d00592e7046577dd16a6f29d015.zip |
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>
-rwxr-xr-x | tools/fuzz-test.sh | 2 |
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 |