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