From: Mark Andrews Date: Mon, 18 May 2020 03:45:10 +0000 (+1000) Subject: Extend loop count by 1 to account for non-exact timing in usleep(). X-Git-Tag: v9.17.2~65^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=3012e1ad9bc4283f19dff73a346e6d9b8a92785c;p=thirdparty%2Fbind9.git Extend loop count by 1 to account for non-exact timing in usleep(). --- diff --git a/lib/dns/tests/db_test.c b/lib/dns/tests/db_test.c index 2164df760e9..a598495a61a 100644 --- a/lib/dns/tests/db_test.c +++ b/lib/dns/tests/db_test.c @@ -211,7 +211,7 @@ dns_dbfind_staleok_test(void **state) { count = 0; do { count++; - assert_in_range(count, 0, 20); /* loop sanity */ + assert_in_range(count, 1, 21); /* loop sanity */ assert_int_equal(rdataset.attributes & DNS_RDATASETATTR_STALE, 0);