summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestTimeout/check.cmake
blob: b16f2aab99b2ae142839c15d0dee09f2214527e3 (plain)
1
2
3
4
5
6
7
8
9
# Block just as long as timeout.cmake would if it were not killed.
execute_process(COMMAND ${Timeout})

# Verify that the log is empty, which indicates that the grandchild
# was killed before it finished sleeping.
file(READ "${Log}" LOG)
if(NOT "${LOG}" STREQUAL "")
  message(FATAL_ERROR "${LOG}")
endif()