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.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/server/util.c') diff --git a/tests/server/util.c b/tests/server/util.c index 2b68971a1..93905c0ec 100644 --- a/tests/server/util.c +++ b/tests/server/util.c @@ -144,3 +144,13 @@ void win32_cleanup(void) } #endif +/* set by the main code to point to where the test dir is */ +const char *path="."; + +char *test2file(long testno) +{ + static char filename[256]; + snprintf(filename, sizeof(filename), TEST_DATA_PATH, path, testno); + return filename; +} + -- cgit v1.2.3