mirror of
https://github.com/curl/curl.git
synced 2026-08-26 10:53:36 +03:00
moved test2file() to util.c
This commit is contained in:
parent
97a6d7b1a8
commit
9542dfdcdc
3 changed files with 20 additions and 14 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue