Skip to content

Commit

Permalink
Attempt to deal with longer paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
vidanovic committed Feb 3, 2025
1 parent 972dae7 commit 35b0c2d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 35b0c2d

Please sign in to comment.