From ab6fd5e89266a29efdafee3784d2cb06f8624b1b Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 2 Jun 2014 13:53:37 +1000 Subject: [PATCH] initialise matches --- bin/tests/system/rrsetorder/tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/tests/system/rrsetorder/tests.sh b/bin/tests/system/rrsetorder/tests.sh index fe75fb31df..2047fc2e62 100644 --- a/bin/tests/system/rrsetorder/tests.sh +++ b/bin/tests/system/rrsetorder/tests.sh @@ -43,13 +43,14 @@ if $test_fixed; then else echo "I: Checking order fixed behaves as cyclic when disabled (master)" ret=0 + matches=0 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 do j=`expr $i % 4` $DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \ -p 5300 @10.53.0.1 fixed.example > dig.out.fixed || ret=1 if [ $i -le 4 ]; then - cp dig.out.fixed dig.out.$j + cp dig.out.fixed dig.out.$j else cmp -s dig.out.fixed dig.out.$j && matches=`expr $matches + 1` fi