aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/test.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-05-09 16:48:11 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-05-09 16:50:42 +0200
commit9e4f6c58093d5bb6d2fc8e7dfda225080450a47d (patch)
treec2b607208f4281e749745459a36a4ca1048f589d /tests/libtest/test.h
parent5376ed2474be308031f0ba064c4db1d44d60da44 (diff)
libtests: add a wait_ms() function
This allows a libcurl test to portably sleep for a given number of milliseconds.
Diffstat (limited to 'tests/libtest/test.h')
-rw-r--r--tests/libtest/test.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/libtest/test.h b/tests/libtest/test.h
index 5de8c7c75..4186c4f26 100644
--- a/tests/libtest/test.h
+++ b/tests/libtest/test.h
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -58,6 +58,8 @@ extern struct timeval tv_test_start; /* for test timing */
extern int select_wrapper(int nfds, fd_set *rd, fd_set *wr, fd_set *exc,
struct timeval *tv);
+extern void wait_ms(int ms); /* wait this many milliseconds */
+
extern int test(char *URL); /* the actual test function provided by each
individual libXXX.c file */