diff --git a/src/test/run/run.cpp b/src/test/run/run.cpp index b1adfe4..379b07f 100644 --- a/src/test/run/run.cpp +++ b/src/test/run/run.cpp @@ -40,8 +40,12 @@ int run(int argc, const char* argv[]) { auto splitted = util::split(sv, ", "); checkerSources = std::vector{}; for (auto&& path : splitted) { - if (fs::exists(path)) { - checkerSources->emplace_back(path); + fs::path p{path}; + if (!p.is_absolute()) { + p = fs::absolute(path); + } + if (fs::exists(p)) { + checkerSources->emplace_back(p); } } });