You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Unit tests: Don't run in parallel on Windows
This commit is contained in:
@@ -183,13 +183,18 @@ if(NOT Catch2_FOUND)
|
||||
endif()
|
||||
if(BUILD_TESTING)
|
||||
include(Catch)
|
||||
# Parallel tests seem to hang randomly on Windows
|
||||
if(ENABLE_PARALLEL_CTEST)
|
||||
# Figure out the amount of parallelism for CTest
|
||||
include(ProcessorCount)
|
||||
ProcessorCount(CPU_COUNT)
|
||||
if(CPU_COUNT GREATER 1)
|
||||
add_feature_info("Parallel tests" TRUE "Unit tests can use ${CPU_COUNT} processors")
|
||||
list(APPEND CTEST_OPTIONS "-j${CPU_COUNT}")
|
||||
if(WIN32)
|
||||
message(WARNING "Win32 detected, disabling parallel unit tests")
|
||||
else()
|
||||
# Figure out the amount of parallelism for CTest
|
||||
include(ProcessorCount)
|
||||
ProcessorCount(CPU_COUNT)
|
||||
if(CPU_COUNT GREATER 1)
|
||||
add_feature_info("Parallel tests" TRUE "Unit tests can use ${CPU_COUNT} processors")
|
||||
list(APPEND CTEST_OPTIONS "-j${CPU_COUNT}")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
if(VERBOSE_TESTS)
|
||||
|
||||
Reference in New Issue
Block a user