fix: use canonical instead of absolute in test initialization

This commit is contained in:
Jan 2025-01-05 09:00:13 +00:00
parent ce3786f086
commit 83833cb84e
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C

View File

@ -7,7 +7,7 @@ namespace fs = std::filesystem;
int main(const int argc, char* argv[]) int main(const int argc, char* argv[])
{ {
const fs::path absoluteBinDir(fs::absolute(argv[0]).parent_path()); const fs::path absoluteBinDir(fs::canonical(argv[0]).parent_path());
const auto expectedLibDir = absoluteBinDir.parent_path().parent_path(); const auto expectedLibDir = absoluteBinDir.parent_path().parent_path();
const auto expectedBuildDir = expectedLibDir.parent_path(); const auto expectedBuildDir = expectedLibDir.parent_path();