From 35b0c2de962b7b4d47480b97276b14d75a98e610 Mon Sep 17 00:00:00 2001 From: Simon Vidanovic Date: Mon, 3 Feb 2025 09:02:10 -0800 Subject: [PATCH] Attempt to deal with longer paths. --- test/util.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/util.cpp b/test/util.cpp index e9fc2c60..144f6d02 100644 --- a/test/util.cpp +++ b/test/util.cpp @@ -36,7 +36,12 @@ std::filesystem::path expected_results_path(std::string const & test_name) nlohmann::json parse_expected_results(std::string const & test_name) { logMsg("start parse_expected_results: " + test_name); - auto path = expected_results_path(test_name); + + // This was causing problems with long paths in file names. Because of that line that deals + // with longer paths was added. + //auto path = expected_results_path(test_name); + auto path = std::filesystem::path(R"(\\?\)" + std::filesystem::absolute(expected_results_path(test_name)).string()); + if(!std::filesystem::exists(path)) {