do the fifo test on platforms where mkfifo is available
authorrichardv <richardv@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 24 Aug 2007 15:45:16 +0000 (15:45 +0000)
committerrichardv <richardv@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 24 Aug 2007 15:45:16 +0000 (15:45 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22640 f5534014-38df-0310-8fa8-9805f1628bb7

test/config.sh

index aec0a04b343fccc6449af5e4ef990dcb9218c1cb..a2b69c8fa874998fca31414093a69fb07eb21063 100755 (executable)
@@ -64,6 +64,9 @@ TRAFFIC_CAPTURE_DURATION=60
 # if you need promiscuous mode, comment this line out
 TRAFFIC_CAPTURE_PROMISC=-p
 
-# Windows (even cygwin) don't provide the mkfifo used here
-# if you have mkfifo, you may uncomment this line
-#TEST_FIFO
+# 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
+    TEST_FIFO=1
+fi
+