aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-07-01 04:01:13 +0000
committerGuy Harris <guy@alum.mit.edu>2010-07-01 04:01:13 +0000
commit0edb77e6f349f38a61ed6d66f1027756b1f20345 (patch)
tree9a496931224f96c209229273b24cfb39479c1055
parent622f07b95e03f68af59ec0a9a21ca68f10160817 (diff)
TShark now exits with a status of 1 for an invalid interface or capture
filter; check for that, rather than for a status of 0. svn path=/trunk/; revision=33397
-rwxr-xr-xtest/suite-clopts.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/suite-clopts.sh b/test/suite-clopts.sh
index 1a74ade55a..30da24f2c8 100755
--- a/test/suite-clopts.sh
+++ b/test/suite-clopts.sh
@@ -113,7 +113,7 @@ clopts_step_invalid_capfilter() {
$TSHARK -f 'jkghg' -w './testout.pcap' > ./testout.txt 2>&1
RETURNVALUE=$?
- if [ ! $RETURNVALUE -eq $EXIT_OK ]; then
+ if [ ! $RETURNVALUE -eq $EXIT_COMMAND_LINE ]; then
test_step_failed "exit status: $RETURNVALUE"
else
grep -i 'Invalid capture filter: "jkghg"' ./testout.txt > /dev/null
@@ -131,7 +131,7 @@ clopts_step_invalid_capfilter() {
clopts_step_invalid_interface() {
$TSHARK -i invalid_interface -w './testout.pcap' > ./testout.txt 2>&1
RETURNVALUE=$?
- if [ ! $RETURNVALUE -eq $EXIT_OK ]; then
+ if [ ! $RETURNVALUE -eq $EXIT_COMMAND_LINE ]; then
test_step_failed "exit status: $RETURNVALUE"
else
grep -i 'The capture session could not be initiated' ./testout.txt > /dev/null