From: Evan Hunt Date: Wed, 23 Jan 2019 06:49:00 +0000 (-0800) Subject: fix statistics test X-Git-Tag: v9.13.6~36^2~9 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=1150a008b2113bbfa51921fb4f8d2aa28c825bf3;p=thirdparty%2Fbind9.git fix statistics test the active sockets test is supposed to be commented out on win32, but only part of it was --- diff --git a/bin/tests/system/statistics/tests.sh b/bin/tests/system/statistics/tests.sh index c6e6785bdbe..1f552ca71f1 100644 --- a/bin/tests/system/statistics/tests.sh +++ b/bin/tests/system/statistics/tests.sh @@ -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`