summaryrefslogtreecommitdiff
path: root/Tests/CTestTestTimeout/timeout.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CTestTestTimeout/timeout.cmake')
-rw-r--r--Tests/CTestTestTimeout/timeout.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/CTestTestTimeout/timeout.cmake b/Tests/CTestTestTimeout/timeout.cmake
new file mode 100644
index 000000000..198cc9713
--- /dev/null
+++ b/Tests/CTestTestTimeout/timeout.cmake
@@ -0,0 +1,6 @@
+# Remove the log file.
+file(REMOVE ${Log})
+
+# Run a child that sleeps longer than the timout of this test.
+# Log its output so check.cmake can verify it dies.
+execute_process(COMMAND ${Timeout} OUTPUT_FILE ${Log})