Skip to content

Commit f08e14c

Browse files
authored
Merge pull request #1946 from orcl-jlana/fix-1945
enable test_memusage only if OS_LINUX is defined
2 parents c8d3c87 + bed2650 commit f08e14c

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

tests/API/probes/CMakeLists.txt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ target_include_directories(oval_fts_list PUBLIC
3939
target_link_libraries(oval_fts_list openscap)
4040
add_oscap_test("fts.sh")
4141

42-
add_oscap_test_executable(test_memusage
43-
"test_memusage.c"
44-
"${CMAKE_SOURCE_DIR}/src/common/bfind.c"
45-
)
46-
target_include_directories(test_memusage PUBLIC
47-
"${CMAKE_SOURCE_DIR}/src/common"
48-
)
49-
add_oscap_test("test_memusage.sh")
42+
if(OS_LINUX)
43+
add_oscap_test_executable(test_memusage
44+
"test_memusage.c"
45+
"${CMAKE_SOURCE_DIR}/src/common/bfind.c"
46+
)
47+
target_include_directories(test_memusage PUBLIC
48+
"${CMAKE_SOURCE_DIR}/src/common"
49+
)
50+
add_oscap_test("test_memusage.sh")
51+
endif(OS_LINUX)

0 commit comments

Comments
 (0)