]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: look for preprocessed tests in build directory
authorKamil Dudka <kdudka@redhat.com>
Wed, 29 Apr 2020 11:26:14 +0000 (13:26 +0200)
committerKamil Dudka <kdudka@redhat.com>
Wed, 29 Apr 2020 11:53:12 +0000 (13:53 +0200)
... which is not always the same directory as source directory

Closes #5310

tests/server/util.c

index f576b9c2376fe5fa641f2ff039015eae11ec90a7..09bb515b42bc8f2f36119bc970191f10de968cbb 100644 (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;