summaryrefslogtreecommitdiff
path: root/tests/libtest/first.c
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2014-05-21 12:49:50 +0200
committerAlessandro Ghedini <alessandro@ghedini.me>2014-05-21 12:49:50 +0200
commita87e878305851b0d8c48f5c06370ab8d0725560a (patch)
tree6d055277be1b91d8af0a44e9e729e68a4c8251e5 /tests/libtest/first.c
parent406f619a33e3b0e01cc04e8e77a90ee93b229602 (diff)
Imported Upstream version 7.37.0
Diffstat (limited to 'tests/libtest/first.c')
-rw-r--r--tests/libtest/first.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/libtest/first.c b/tests/libtest/first.c
index 9ab7dc75..5851faf6 100644
--- a/tests/libtest/first.c
+++ b/tests/libtest/first.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2011, 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
@@ -59,6 +59,15 @@ int select_wrapper(int nfds, fd_set *rd, fd_set *wr, fd_set *exc,
return select(nfds, rd, wr, exc, tv);
}
+void wait_ms(int ms)
+{
+ struct timeval t;
+ t.tv_sec = ms/1000;
+ ms -= (int)t.tv_sec * 1000;
+ t.tv_usec = ms * 1000;
+ select_wrapper(0, NULL, NULL , NULL, &t);
+}
+
char *libtest_arg2=NULL;
char *libtest_arg3=NULL;
int test_argc;