From 3945c289bb52c94c68b9016cb94d51d9213ae41e Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 3 Jun 2021 19:31:34 +1000 Subject: [PATCH] Reset errcnt at the start of each subtest --- lib/isc/tests/timer_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/isc/tests/timer_test.c b/lib/isc/tests/timer_test.c index 717732010e..d90ba2d1ae 100644 --- a/lib/isc/tests/timer_test.c +++ b/lib/isc/tests/timer_test.c @@ -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);