From 79045b2031e392541ef5aa0bb6e745e02aba1d89 Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Mon, 8 Jun 2020 22:32:45 +0200
Subject: [PATCH] Add forgotten zero counters to reset coverage counters

---
 CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3a09b9b54..0d9790971 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -342,6 +342,9 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Coverage")
     add_custom_target(coverage
       ALL # in coverage mode we do coverage!
 
+      # zero all counters
+      COMMAND ${FASTCOV} -q -z
+
       # Run tests
       COMMAND ${CMAKE_CTEST_COMMAND}
 
-- 
GitLab