]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Extend loop count by 1 to account for non-exact timing in usleep().
authorMark Andrews <marka@isc.org>
Mon, 18 May 2020 03:45:10 +0000 (13:45 +1000)
committerMark Andrews <marka@isc.org>
Thu, 21 May 2020 04:09:42 +0000 (14:09 +1000)
(cherry picked from commit 3012e1ad9bc4283f19dff73a346e6d9b8a92785c)

lib/dns/tests/db_test.c

index 2164df760e94a80bde3537f7a8e3e24230ec97bd..a598495a61a9de9c23d78bbd41faf7532e51ff22 100644 (file)
@@ -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);