capture() can, in some cases, return FALSE when the capture succeeds;
[obnox/wireshark/wip.git] / test / suite-clopts.sh
index b0e496c56b71dacc8232b9032529e7ea832c56fd..1a74ade55a3abd006c0637815699e5bc58c64776 100755 (executable)
@@ -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