Merge topic 'deterministic-CTest-tests'
bf24b6c5
Tests: Guard more CTest tests against parallel execution.
This commit is contained in:
commit
f0673c1022
|
@ -2415,6 +2415,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release
|
|||
set_tests_properties(CTestCoverageCollectGCOV PROPERTIES
|
||||
PASS_REGULAR_EXPRESSION
|
||||
"PASSED with correct output.*Testing/CoverageInfo/main.cpp.gcov")
|
||||
set_property(TEST CTestCoverageCollectGCOV PROPERTY ENVIRONMENT CTEST_PARALLEL_LEVEL=)
|
||||
|
||||
configure_file(
|
||||
"${CMake_SOURCE_DIR}/Tests/CTestTestEmptyBinaryDirectory/test.cmake.in"
|
||||
|
@ -2714,6 +2715,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release
|
|||
)
|
||||
set_tests_properties(CTestTestSkipReturnCode PROPERTIES
|
||||
PASS_REGULAR_EXPRESSION "CMakeV1 \\.* +Passed.*CMakeV2 \\.+\\*+Skipped")
|
||||
set_property(TEST CTestTestSkipReturnCode PROPERTY ENVIRONMENT CTEST_PARALLEL_LEVEL=)
|
||||
|
||||
ADD_TEST_MACRO(CTestTestSerialInDepends ${CMAKE_CTEST_COMMAND} -j 4
|
||||
--output-on-failure -C "\${CTestTest_CONFIG}")
|
||||
|
|
|
@ -4,6 +4,8 @@ set(SITE test-site)
|
|||
set(BUILDNAME test-build)
|
||||
set(COVERAGE_COMMAND "")
|
||||
|
||||
unset(ENV{CTEST_PARALLEL_LEVEL})
|
||||
|
||||
function(run_mc_test CASE_NAME CHECKER_COMMAND)
|
||||
run_ctest(${CASE_NAME} ${ARGN})
|
||||
endfunction()
|
||||
|
|
Loading…
Reference in New Issue