From: Timo Heister Date: Fri, 29 May 2020 16:39:37 +0000 (-0400) Subject: windows: force quick tests in serial X-Git-Tag: v9.3.0-rc1~1513^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10425%2Fhead;p=dealii.git windows: force quick tests in serial fixes the test failures in #10409 (now that we have 2 quicktests) --- diff --git a/tests/quick_tests/run.cmake b/tests/quick_tests/run.cmake index ab6e7fc806..4fd17f765c 100644 --- a/tests/quick_tests/run.cmake +++ b/tests/quick_tests/run.cmake @@ -22,6 +22,18 @@ IF(_n_processors EQUAL 0) SET(_n_processors "1") ENDIF() + +# Windows quick tests have a race condition, so disable compiling/running +# tests in parallel. This avoid errors like: +# +# error MSB3491: Could not write lines to file +# "obj_boost_system_debug.dir\Debug\obj_boos.4A356C5C.tlog\obj_boost_system_debug.lastbuildstate". The +# process cannot access the file '...' because it is being used by another +# process. +IF(CMAKE_SYSTEM_NAME MATCHES "Windows") + SET(_n_processors "1") +ENDIF() + SEPARATE_ARGUMENTS(ALL_TESTS) EXECUTE_PROCESS(COMMAND ${CMAKE_CTEST_COMMAND} -j${_n_processors}