1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-11 05:58:01 -05:00

tests: look for preprocessed tests in build directory

... which is not always the same directory as source directory

Closes #5310
This commit is contained in:
Kamil Dudka 2020-04-29 13:26:14 +02:00
parent b4799e978e
commit 1066f5f0d4

View File

@ -199,7 +199,7 @@ FILE *test2fopen(long testno)
FILE *stream;
char filename[256];
/* first try the alternative, preprocessed, file */
msnprintf(filename, sizeof(filename), ALTTEST_DATA_PATH, path, testno);
msnprintf(filename, sizeof(filename), ALTTEST_DATA_PATH, ".", testno);
stream = fopen(filename, "rb");
if(stream)
return stream;