diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-06-01 03:37:51 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-06-01 03:37:51 +0000 |
commit | 7ecae442c572adbd5ca480dae37a17e8785a7d7e (patch) | |
tree | 6802770b81fcadb2a3f603bc2a0eb5f43ee9a770 /test/suite-clopts.sh | |
parent | 61e40b5c52f40d275a9b49817187a31b0176a408 (diff) |
capture() can, in some cases, return FALSE when the capture succeeds;
back out the change to check its return value until we fix that.
Also back out the test suite changes to look for an error exit for
invalid capture filters and interfaces.
svn path=/trunk/; revision=33029
Diffstat (limited to 'test/suite-clopts.sh')
-rwxr-xr-x | test/suite-clopts.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/suite-clopts.sh b/test/suite-clopts.sh index b0e496c56b..1a74ade55a 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_ERROR ]; then + if [ ! $RETURNVALUE -eq $EXIT_OK ]; 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_ERROR ]; then + if [ ! $RETURNVALUE -eq $EXIT_OK ]; then test_step_failed "exit status: $RETURNVALUE" else grep -i 'The capture session could not be initiated' ./testout.txt > /dev/null |