Skip to content
  • Brad King's avatar
    CTest: Test process tree kill on timeout · 88eeface
    Brad King authored
    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.
    88eeface