summaryrefslogtreecommitdiff
path: root/Tests/CTestTestTimeout/timeout.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CTestTestTimeout/timeout.c')
-rw-r--r--Tests/CTestTestTimeout/timeout.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/Tests/CTestTestTimeout/timeout.c b/Tests/CTestTestTimeout/timeout.c
new file mode 100644
index 000000000..370ab22ed
--- /dev/null
+++ b/Tests/CTestTestTimeout/timeout.c
@@ -0,0 +1,18 @@
+#if defined(_WIN32)
+# include <windows.h>
+#else
+# include <unistd.h>
+#endif
+
+#include <stdio.h>
+
+int main(void)
+{
+#if defined(_WIN32)
+ Sleep((TIMEOUT+4)*1000);
+#else
+ sleep((TIMEOUT+4));
+#endif
+ printf("timeout process finished sleeping!\n");
+ return -1;
+}