aboutsummaryrefslogtreecommitdiff
path: root/tests/server/util.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-09-15 20:22:43 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-09-15 20:22:43 +0000
commit9542dfdcdc37773d95b5a0c402fa04c6c9f7d2e7 (patch)
treeb14dffd8d55c223af456f50807a31e1b0c4fd5d9 /tests/server/util.h
parent97a6d7b1a8f1370d825d4b1fe9dbb52ee8dfe712 (diff)
moved test2file() to util.c
Diffstat (limited to 'tests/server/util.h')
-rw-r--r--tests/server/util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/server/util.h b/tests/server/util.h
index c4521fbae..357b49cc9 100644
--- a/tests/server/util.h
+++ b/tests/server/util.h
@@ -33,6 +33,11 @@ void logmsg(const char *msg, ...);
#define TRUE 1
#endif
+#define TEST_DATA_PATH "%s/data/test%ld"
+
+/* global variable, where to find the 'data' dir */
+extern const char *path;
+
#if defined(WIN32) && !defined(__CYGWIN__)
#include <windows.h>
#include <winsock2.h>
@@ -60,3 +65,6 @@ const struct in6_addr in6addr_any = {{ IN6ADDR_ANY_INIT }};
void win32_init(void);
void win32_cleanup(void);
+
+/* returns the path name to the test case file */
+char *test2file(long testno);