]> 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:47:11 +0000 (03:47 +0000)
lib/isc/tests/timer_test.c

index 717732010e74a5bab4e0e1d18f4b7bc7e88e153c..d90ba2d1ae2a1bf4adcc3c0b1c0ed72903c41f9d 100644 (file)
@@ -113,6 +113,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);