Skip to content

Commit a3eb2df

Browse files
LucasCholletnico
authored andcommitted
CMake: Skip building some kernel tests for coverage builds
1 parent f4fe145 commit a3eb2df

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Tests/Kernel/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ target_link_libraries(fuzz-syscalls PRIVATE LibSystem)
3838
serenity_test("crash.cpp" Kernel MAIN_ALREADY_DEFINED)
3939

4040
set(LIBTEST_BASED_SOURCES
41-
TestAnonymousMmap.cpp
4241
TestEFault.cpp
4342
TestEmptyPrivateInodeVMObject.cpp
4443
TestEmptySharedInodeVMObject.cpp
@@ -60,7 +59,6 @@ set(LIBTEST_BASED_SOURCES
6059
TestProcFSWrite.cpp
6160
TestSigAltStack.cpp
6261
TestSigHandler.cpp
63-
TestSigWait.cpp
6462
TestTCPSocket.cpp
6563
TestWait.cpp
6664
TestWXProtection.cpp
@@ -70,6 +68,14 @@ if (ENABLE_KERNEL_COVERAGE_COLLECTION)
7068
list(APPEND LIBTEST_BASED_SOURCES TestKCOV.cpp)
7169
endif()
7270

71+
if (NOT ENABLE_USERSPACE_COVERAGE_COLLECTION)
72+
# FIXME: Make these tests generate valid coverage files.
73+
list(APPEND LIBTEST_BASED_SOURCES
74+
TestAnonymousMmap.cpp
75+
TestSigWait.cpp
76+
)
77+
endif()
78+
7379
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
7480
list(APPEND LIBTEST_BASED_SOURCES TestMemoryDeviceMmap.cpp)
7581
endif()

0 commit comments

Comments
 (0)