From: Kamil Dudka Date: Wed, 29 Apr 2020 11:26:14 +0000 (+0200) Subject: tests: look for preprocessed tests in build directory X-Git-Tag: curl-7_71_0~242 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1066f5f0d4b304f7ba46f912cf13e12f45e39553;p=thirdparty%2Fcurl.git tests: look for preprocessed tests in build directory ... which is not always the same directory as source directory Closes #5310 --- diff --git a/tests/server/util.c b/tests/server/util.c index f576b9c237..09bb515b42 100644 --- a/tests/server/util.c +++ b/tests/server/util.c @@ -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;