summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestZeroTimeout/sleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CTestTestZeroTimeout/sleep.c')
-rw-r--r--Tests/CTestTestZeroTimeout/sleep.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/CTestTestZeroTimeout/sleep.c b/Tests/CTestTestZeroTimeout/sleep.c
new file mode 100644
index 0000000..d40d59d
--- /dev/null
+++ b/Tests/CTestTestZeroTimeout/sleep.c
@@ -0,0 +1,16 @@
+#if defined(_WIN32)
+# include <windows.h>
+#else
+# include <unistd.h>
+#endif
+
+/* sleeps for 5 seconds */
+int main(int argc, char** argv)
+{
+#if defined(_WIN32)
+ Sleep(5000);
+#else
+ sleep(5);
+#endif
+ return 0;
+}