Commit 3f1208bf4e for bind
commit 3f1208bf4ecac9b43ce4bd38ce3de5dbd87a8fe5
Author: Petr Špaček <pspacek@isc.org>
Date: Thu Oct 8 09:37:55 2026 +0000
Fix empty output check for named-checkconf -i
The check never matched any output and could not fail.
Assisted-by: Claude:claude-opus-5-5
diff --git a/bin/tests/system/checkconf/tests.sh b/bin/tests/system/checkconf/tests.sh
index 0f40d367f0..8a634c80cc 100644
--- a/bin/tests/system/checkconf/tests.sh
+++ b/bin/tests/system/checkconf/tests.sh
@@ -194,9 +194,14 @@ $CHECKCONF deprecated.conf >checkconf.out$n.1 2>&1 || ret=1
grep "option 'max-zone-ttl' is deprecated" <checkconf.out$n.1 >/dev/null || ret=1
grep "option 'nxdomain-redirect' is deprecated" <checkconf.out$n.1 >/dev/null || ret=1
grep "type 'redirect' is deprecated" <checkconf.out$n.1 >/dev/null || ret=1
-# set -i to ignore deprecate warnings
-$CHECKCONF -i deprecated.conf >checkconf.out$n.2 2>&1
-[ -s checkconf.out$n.2 ] && ret=1
+if [ $ret -ne 0 ]; then echo_i "failed"; fi
+status=$((status + ret))
+
+n=$((n + 1))
+echo_i "checking named-checkconf -i ignores deprecate warnings ($n)"
+ret=0
+$CHECKCONF -i deprecated.conf >checkconf.out$n 2>&1
+[ -s checkconf.out$n ] && ret=1
if [ $ret -ne 0 ]; then echo_i "failed"; fi
status=$((status + ret))