cmake/Tests/RunCMake/CTestTimeout/SignalIgnore-check.cmake
2023-07-02 19:51:09 +02:00

12 lines
324 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 "EINTR")
set(RunCMake_TEST_FAILED "Test output does not mention EINTR.")
return()
endif()