diff options
Diffstat (limited to 'Tests/RunCMake/CTestHardwareAllocation/ensure_parallel.cmake')
-rw-r--r-- | Tests/RunCMake/CTestHardwareAllocation/ensure_parallel.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/CTestHardwareAllocation/ensure_parallel.cmake b/Tests/RunCMake/CTestHardwareAllocation/ensure_parallel.cmake new file mode 100644 index 0000000..1dafb8f --- /dev/null +++ b/Tests/RunCMake/CTestHardwareAllocation/ensure_parallel.cmake @@ -0,0 +1,11 @@ +setup_hardware_tests() + +add_hardware_test(Test1 4 "transmogrifiers:2") + +# Mitigate possible race conditions to ensure that the events are logged in the +# exact order we want +add_test(NAME Test2Sleep COMMAND "${CMAKE_COMMAND}" -E sleep 2) +add_hardware_test(Test2 4 "transmogrifiers:2") +set_property(TEST Test2 APPEND PROPERTY DEPENDS Test2Sleep) + +cleanup_hardware_tests() |