]> https://gitweb.dealii.org/ - dealii.git/commitdiff
windows: force quick tests in serial 10425/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 29 May 2020 16:39:37 +0000 (12:39 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sat, 30 May 2020 20:20:47 +0000 (16:20 -0400)
fixes the test failures in #10409 (now that we have 2 quicktests)

tests/quick_tests/run.cmake

index ab6e7fc8062650d189ca056a961bedff6e88883c..4fd17f765c85327ca87677fe5c6500383fa09a2c 100644 (file)
@@ -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}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.