mirror of
https://github.com/reactos/CMake.git
synced 2024-12-19 01:27:11 +00:00
88eefaced1
We extend the CTestTestTimeout test to check that when a test times out its children (grandchildren of ctest) are killed. Instead of running the timeout executable directly, we run it through a cmake script that redirects the timeout executable output to a file. A second test later runs and verifies that the timeout executable was unable to complete and write data to the log file. Only if the first inner test times out and the second inner test passes (log is empty) does the CTestTestTimeout test pass.
7 lines
214 B
CMake
7 lines
214 B
CMake
# Remove the log file.
|
|
file(REMOVE ${Log})
|
|
|
|
# Run a child that sleeps longer than the timout of this test.
|
|
# Log its output so check.cmake can verify it dies.
|
|
execute_process(COMMAND ${Timeout} OUTPUT_FILE ${Log})
|