check.cmake 307 B

123456789
  1. # Block just as long as timeout.cmake would if it were not killed.
  2. execute_process(COMMAND ${Timeout})
  3. # Verify that the log is empty, which indicates that the grandchild
  4. # was killed before it finished sleeping.
  5. file(READ "${Log}" LOG)
  6. if(NOT "${LOG}" STREQUAL "")
  7. message(FATAL_ERROR "${LOG}")
  8. endif()