From 928af4c4249d43ba69273ff1ae4768e2290203ea 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 (cherry picked from commit 3945c289bb52c94c68b9016cb94d51d9213ae41e) --- 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 dc1223e318..b82b4049a7 100644 --- a/lib/isc/tests/timer_test.c +++ b/lib/isc/tests/timer_test.c @@ -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);