From 9542dfdcdc37773d95b5a0c402fa04c6c9f7d2e7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 15 Sep 2005 20:22:43 +0000 Subject: moved test2file() to util.c --- tests/server/util.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/server/util.h') 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 #include @@ -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); -- cgit v1.2.3