aboutsummaryrefslogtreecommitdiff
path: root/tests/server/util.c
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.c
parent97a6d7b1a8f1370d825d4b1fe9dbb52ee8dfe712 (diff)
moved test2file() to util.c
Diffstat (limited to 'tests/server/util.c')
-rw-r--r--tests/server/util.c10
1 files changed, 10 insertions, 0 deletions
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;
+}
+