aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2020-04-29 13:26:14 +0200
committerKamil Dudka <kdudka@redhat.com>2020-04-29 13:53:12 +0200
commit1066f5f0d4b304f7ba46f912cf13e12f45e39553 (patch)
tree1ed813a2a9f67fb1d7c5ec19188b3f6d5e0c5f85 /tests
parentb4799e978e34eb7587cc5df521de8f32c7f615d1 (diff)
tests: look for preprocessed tests in build directory
... which is not always the same directory as source directory Closes #5310
Diffstat (limited to 'tests')
-rw-r--r--tests/server/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/server/util.c b/tests/server/util.c
index f576b9c23..09bb515b4 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;