'gcc-15 -Wbuiltin-declaration-mismatch' error in compat/malloc.c.
- For #1262, ifdef is no longer needed.
+2 April 2025: Wouter
+ - Fix unbound-control test so it counts the new flush_negative output,
+ also answers the _ta probe from testns and prints command output
+ and skip a thread specific test when no threads are available.
+
1 April 2025: Wouter
- Fix escape more characters when printing an RR type with an unquoted
string.
# Issue an unbound-control command
# $@: command arguments
-control_command () {
+control_command() {
echo "$PRE/unbound-control $@"
$PRE/unbound-control $@ > outfile
+ exitstatus=$?
+ cat outfile
+ return $exitstatus
}
# Reload the server and check the reload has finished processing
teststep "clean reload"
clean_reload
+# The flush negative only works if the server is either on 1 thread,
+# or there is threading enabled. Multiple processes does not work for the
+# test, since the printout does not have the stats of a global cache.
+if test $num_threads -le 1 -o "$have_threads" = "yes"; then
teststep "Check negative flushing"
query always.empty.
expect_answer "SERVFAIL"
expect_answer "SERVFAIL"
control_command -c ub.conf flush_negative
expect_exit_value 0
-expect_answer "^ok removed .*, 2 messages and 1 key"
+expect_answer "^ok removed .*, 3 messages and 1 key entries"
control_command -c ub.conf flush_negative
expect_exit_value 0
-expect_answer "^ok removed .*, 0 messages and 0 key"
+expect_answer "^ok removed .*, 0 messages and 0 key entries"
+else
+ echo "> skip Check negative flushing, because no threads"
+fi
teststep "create a new local zone"
control_command -c ub.conf local_zone example.net static