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