From 83833cb84e11e22a175c7a1d6b484e6d590e99fa Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 5 Jan 2025 09:00:13 +0000 Subject: [PATCH] fix: use canonical instead of absolute in test initialization --- test/Catch2Common/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Catch2Common/main.cpp b/test/Catch2Common/main.cpp index 05cb7ccb..b00818dc 100644 --- a/test/Catch2Common/main.cpp +++ b/test/Catch2Common/main.cpp @@ -7,7 +7,7 @@ namespace fs = std::filesystem; 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 expectedBuildDir = expectedLibDir.parent_path();