diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-11-21 18:59:27 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-11-21 18:59:27 +0000 |
commit | 6871a7bb1c0a6816ee6c9bbe3049ba681eb23658 (patch) | |
tree | d9245388db81f2800b21529e670dae2a1bf573b6 /test/suite-clopts.sh | |
parent | fd62af338d206b807abd71b23e9509b861598b99 (diff) |
We aren't using pcap_create()/pcap_activate() to open interfaces on
Windows, as there isn't yet a WinPcap based on libpcap 1.0.0, so we
don't get PCAP_ERROR_NO_SUCH_DEVICE as a return value and thus don't
just report "No such device exists" for an invalid interface.
svn path=/trunk/; revision=46116
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 c19212da57..deed671260 100755 --- a/test/suite-clopts.sh +++ b/test/suite-clopts.sh @@ -115,7 +115,7 @@ clopts_step_dumpcap_invalid_interfaces() { test_step_failed "exit status: $RETURNVALUE" else if [ "$WS_SYSTEM" = "Windows" ] ; then - grep -i 'The capture session could not be initiated (No such device exists).' ./testout.txt > /dev/null + grep -i 'The capture session could not be initiated (Error opening adapter: The system cannot find the device specified. (20)).' ./testout.txt > /dev/null else grep -i "The capture session could not be initiated (You don't have permission to capture on that device)." ./testout.txt > /dev/null fi @@ -238,7 +238,7 @@ clopts_step_tshark_invalid_interfaces() { test_step_failed "exit status: $RETURNVALUE" else if [ "$WS_SYSTEM" = "Windows" ] ; then - grep -i 'The capture session could not be initiated (No such device exists).' ./testout.txt > /dev/null + grep -i 'The capture session could not be initiated (Error opening adapter: The system cannot find the device specified. (20)).' ./testout.txt > /dev/null else grep -i "The capture session could not be initiated (You don't have permission to capture on that device)." ./testout.txt > /dev/null fi |