mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
CTest normally terminates test processes on timeout using `SIGKILL`.
Offer tests a chance to exit gracefully, on platforms supporting POSIX
signals, by setting `TIMEOUT_SIGNAL_{NAME,GRACE_PERIOD}` properties.
Fixes: #17288
12 lines
328 B
CMake
12 lines
328 B
CMake
file(GLOB test_xml "${RunCMake_TEST_BINARY_DIR}/Testing/*/Test.xml")
|
|
if(NOT test_xml)
|
|
set(RunCMake_TEST_FAILED "Test.xml not found.")
|
|
return()
|
|
endif()
|
|
|
|
file(READ "${test_xml}" test_xml_content)
|
|
if(NOT test_xml_content MATCHES "SIGUSR1")
|
|
set(RunCMake_TEST_FAILED "Test output does not mention SIGUSR1.")
|
|
return()
|
|
endif()
|