Fixed coverage not being reported for all samples
This commit is contained in:
parent
ce16e84d59
commit
9690963bd5
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue