diff options
Diffstat (limited to 'tests/server/util.c')
-rw-r--r-- | tests/server/util.c | 10 |
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; +} + |