From 9690963bd50718c23bfef2e1cd2b0ca461ba1052 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Wed, 16 Sep 2015 00:54:36 +0200 Subject: [PATCH] Fixed coverage not being reported for all samples --- samples/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt index 54990fe..ebeacf7 100644 --- a/samples/CMakeLists.txt +++ b/samples/CMakeLists.txt @@ -54,6 +54,7 @@ macro(add_samples DIR_ SAMPLES_) add_test(${sample} ${sample}.bin) set_property(TEST ${sample} PROPERTY ENVIRONMENT "CRITERION_ALWAYS_SUCCEED=1" + ENVIRONMENT "CRITERION_NO_EARLY_EXIT=1" # for coverage ) if (NOT MSVC) # we disable the scripted tests when building with MSVC @@ -62,6 +63,7 @@ macro(add_samples DIR_ SAMPLES_) ENVIRONMENT "LC_ALL=en_US.utf8" ENVIRONMENT "CRITERION_ALWAYS_SUCCEED=1" ENVIRONMENT "CRITERION_SHORT_FILENAME=1" + ENVIRONMENT "CRITERION_NO_EARLY_EXIT=1" # for coverage ) endif () endforeach()