]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Disable exceeded quota check on Windows
authorMichal Nowak <mnowak@isc.org>
Thu, 18 May 2023 10:53:21 +0000 (12:53 +0200)
committerMichal Nowak <mnowak@isc.org>
Thu, 18 May 2023 14:57:55 +0000 (16:57 +0200)
This check is too unstable on Windows. Given the bind-9.16 branch is in
security fixes-only mode, something unlikely to be investigated before
the branch goes EOL.

bin/tests/system/nsupdate/tests.sh

index 3f8b1b44fab7d11267935f0ea576c589e3e9950f..2cf23ac71fe2947bc5e74eae7a55981c076e3e11 100755 (executable)
@@ -1309,19 +1309,22 @@ END
 grep 'failed: REFUSED' nsupdate.out.test$n > /dev/null || ret=1
 [ $ret = 0 ] || { echo_i "failed"; status=1; }
 
-n=$((n + 1))
-ret=0
-echo_i "check that update is rejected if quota is exceeded ($n)"
-for loop in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do
-{
-  $NSUPDATE -4 -l -p ${PORT} -k ns1/session.key > /dev/null 2>&1 <<END
-  update add txt-$loop.other.nil 3600 IN TXT Whatever
-  send
+# This check is unstable on Windows.
+if [ ! "$CYGWIN" ]; then
+  n=$((n + 1))
+  ret=0
+  echo_i "check that update is rejected if quota is exceeded ($n)"
+  for loop in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do
+  {
+    $NSUPDATE -4 -l -p ${PORT} -k ns1/session.key > /dev/null 2>&1 <<END
+    update add txt-$loop.other.nil 3600 IN TXT Whatever
+    send
 END
-} &
-done
-wait_for_log 10 "too many DNS UPDATEs queued" ns1/named.run || ret=1
-[ $ret = 0 ] || { echo_i "failed"; status=1; }
+  } &
+  done
+  wait_for_log 10 "too many DNS UPDATEs queued" ns1/named.run || ret=1
+  [ $ret = 0 ] || { echo_i "failed"; status=1; }
+fi
 
 if ! $FEATURETEST --gssapi ; then
   echo_i "SKIPPED: GSSAPI tests"