From: Diego Fronza Date: Thu, 12 Dec 2019 19:09:19 +0000 (-0300) Subject: Added tcp-highwater test on initial statistics verification X-Git-Tag: v9.15.7~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=114520425caa59e54d15ee8cff123b6fecafca32;p=thirdparty%2Fbind9.git Added tcp-highwater test on initial statistics verification The initial tcp statistics test was not testing tcp-highwater counter, but only initial number of current TCP clients, so this missing test was added to ensure initial tcp-highwater value is correct. --- diff --git a/bin/tests/system/tcp/tests.sh b/bin/tests/system/tcp/tests.sh index 9f57e30805c..8606efd7e50 100644 --- a/bin/tests/system/tcp/tests.sh +++ b/bin/tests/system/tcp/tests.sh @@ -105,6 +105,10 @@ echo_i "TCP high-water: check initial statistics ($n)" ret=0 refresh_tcp_stats assert_int_equal "${TCP_CUR}" 0 "current TCP clients count" || ret=1 +# We compare initial tcp-highwater value with 1 because as part of the +# system test startup, the script start.pl executes dig to check if target +# named is running, and that increments tcp-quota by one. +assert_int_equal "${TCP_HIGH}" 1 "tcp-highwater count" || ret=1 if [ $ret != 0 ]; then echo_i "failed"; fi status=$((status + ret))