Do not remove the test files to avoid a race condition if
cmake decides to rerun in a concurrent situation. Otherwise this would
trigger the following error:
"The detected numdiff executable was not able to pass a simple relative
tolerance test."
RESULT_VARIABLE _numdiff_tolerance_test_status
)
- #
- # Tidy up:
- #
- FILE(REMOVE ${_first_test_file_name})
- FILE(REMOVE ${_second_test_file_name})
+ # Note: We do not remove the test files to avoid a race condition if
+ # cmake decides to rerun in a concurrent situation:
+ # FILE(REMOVE ${_first_test_file_name})
+ # FILE(REMOVE ${_second_test_file_name})
IF(NOT "${_numdiff_tolerance_test_status}" STREQUAL "0")
MESSAGE(FATAL_ERROR
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