]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Reset errcnt at the start of each subtest
authorMark Andrews <marka@isc.org>
Thu, 3 Jun 2021 09:31:34 +0000 (19:31 +1000)
committerMark Andrews <marka@isc.org>
Mon, 12 Jul 2021 03:57:34 +0000 (13:57 +1000)
(cherry picked from commit 3945c289bb52c94c68b9016cb94d51d9213ae41e)

lib/isc/tests/timer_test.c

index dc1223e318efb971c74df0145541797361237186..b82b4049a76720f2f257534d1b8be1b588724866 100644 (file)
@@ -114,6 +114,8 @@ setup_test(isc_timertype_t timertype, isc_time_t *expires,
 
        isc_condition_init(&cv);
 
+       atomic_store(&errcnt, ISC_R_SUCCESS);
+
        LOCK(&mx);
 
        result = isc_task_create(taskmgr, 0, &task);