Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Commit

Permalink
fix: Absoulte path for generator
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRedEye committed May 16, 2019
1 parent 97ddaf5 commit c017faf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/test/run/run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ int run(int argc, const char* argv[]) {
auto splitted = util::split(sv, ", ");
checkerSources = std::vector<fs::path>{};
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);
}
}
});
Expand Down

0 comments on commit c017faf

Please sign in to comment.