diff options
author | Bill Meier <wmeier@newsguy.com> | 2007-08-27 17:49:53 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2007-08-27 17:49:53 +0000 |
commit | cc7d161c4eb469207fc1664d62e04779d462774d (patch) | |
tree | 3dcf0b32e780c55b92731c5ee16ea412d67b4ac9 /test/config.sh | |
parent | 392fd3f6890d50438f459e94c2633d58b1afe01c (diff) |
Prevent execution of the fifo tests on Windows.
(Windows cygwin has a mkfifo but Windows dumpcap & etc
use Windows named pipes which are different than
the cygwin named pipes).
svn path=/trunk/; revision=22685
Diffstat (limited to 'test/config.sh')
-rwxr-xr-x | test/config.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/config.sh b/test/config.sh index a2b69c8fa8..acc107257b 100755 --- a/test/config.sh +++ b/test/config.sh @@ -64,9 +64,12 @@ TRAFFIC_CAPTURE_DURATION=60 # if you need promiscuous mode, comment this line out TRAFFIC_CAPTURE_PROMISC=-p -# only test capturing from a fifo if we have a mkfifo -# (it's not available on Windows or cygwin) -if which mkfifo &>/dev/null ; then +# only test capturing from a fifo if we're not on Windows +# and we have a mkfifo. (Windows cygwin has a mkfifo but +# Windows dumpcap & etc use Windows named pipes which +# are different than the cygwin named pipes). +# +if [ "$WS_SYSTEM" != "Windows" ] && which mkfifo &>/dev/null ; then TEST_FIFO=1 fi |