Skip to content

Commit 1931fc5

Browse files
authored
Fixed a testing issue (#167)
- Added -L krnlmon to the ctest command line to limit its scope to the krnlmon unit tests. Signed-off-by: Derek Foster <[email protected]>
1 parent db0a394 commit 1931fc5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cmake/testing.cmake

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ endfunction()
4242
################
4343

4444
if(TEST_COVERAGE)
45-
set(test_options -T test -T coverage)
45+
set(coverage_options -T test -T coverage)
4646
endif()
4747

4848
set(test_targets
@@ -62,8 +62,10 @@ endif()
6262
# minimum of configuration.
6363
add_custom_target(krnlmon-test
6464
COMMAND
65-
ctest ${test_options}
65+
ctest
66+
-L krnlmon
6667
--output-on-failure
68+
${coverage_options}
6769
DEPENDS
6870
${test_targets}
6971
WORKING_DIRECTORY
@@ -80,7 +82,7 @@ add_custom_target(krnlmon-unit-tests
8082
DEPENDS ${test_targets}
8183
)
8284

83-
unset(test_options)
85+
unset(coverage_options)
8486
unset(test_targets)
8587

8688
####################

0 commit comments

Comments
 (0)