summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CTestTimeout/Signal-check.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CTestTimeout/Signal-check.cmake')
-rw-r--r--Tests/RunCMake/CTestTimeout/Signal-check.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/CTestTimeout/Signal-check.cmake b/Tests/RunCMake/CTestTimeout/Signal-check.cmake
new file mode 100644
index 0000000..bee5ac7
--- /dev/null
+++ b/Tests/RunCMake/CTestTimeout/Signal-check.cmake
@@ -0,0 +1,11 @@
+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()