]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix statistics test
authorEvan Hunt <each@isc.org>
Wed, 23 Jan 2019 06:49:00 +0000 (22:49 -0800)
committerEvan Hunt <each@isc.org>
Fri, 25 Jan 2019 19:24:10 +0000 (11:24 -0800)
the active sockets test is supposed to be commented out on win32, but
only part of it was

bin/tests/system/statistics/tests.sh

index c6e6785bdbef39a7d1497a663cf5a49f5dc23255..1f552ca71f16f696c0740a153ecbc5627ee1783a 100644 (file)
@@ -69,9 +69,10 @@ echo_i "dumping initial stats for ns3 ($n)"
 rm -f ns3/named.stats
 $RNDCCMD -s 10.53.0.3 stats > /dev/null 2>&1
 [ -f ns3/named.stats ] || ret=1
-[ "$CYGWIN" ] || \
-nsock0nstat=`grep "UDP/IPv4 sockets active" ns3/named.stats | awk '{print $1}'`
-[ 0 -ne ${nsock0nstat:-0} ] || ret=1
+if [ ! "$CYGWIN" ]; then
+    nsock0nstat=`grep "UDP/IPv4 sockets active" ns3/named.stats | awk '{print $1}'`
+    [ 0 -ne ${nsock0nstat:-0} ] || ret=1
+fi
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 n=`expr $n + 1`