]> https://gitweb.dealii.org/ - dealii.git/commit
CMake: avoid race conditions between concurrent prm tests 14615/head
authorMatthias Maier <tamiko@43-1.org>
Mon, 26 Dec 2022 04:01:03 +0000 (22:01 -0600)
committerMatthias Maier <tamiko@43-1.org>
Mon, 26 Dec 2022 04:16:06 +0000 (22:16 -0600)
commit3e5ca655adbe8b9110ecfb5dc9f9dc28a34dd1ff
treeddb4f5480b509480c41fe8f36653f3af267fb6b5
parent9e047ac3c453be339f131bfc5c482c8c5234ee79
CMake: avoid race conditions between concurrent prm tests

We need to serialize all tests that share a common executable target.
This involves tests with .threads=N. and .mpirun=N. annotation, as well
as tests with parameter files (that might share a common executable
target).

Running multiple variants of tests with the same target executable in
parallel triggers a race condition where the same (not yet existent)
target is built concurrently leading to undefined outcomes.
cmake/macros/macro_deal_ii_add_test.cmake

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.