Use canonical path in DrvfsMountManyVirtioFsShares (#41371)

Blue committed Aug 18, 2026 at 17:17 UTC 93cd8ed74b0a63e6be87ff1a1f15507ea381079c
1 file changed +3 -2
test/windows/DrvFsTests.cpp
+3 -2
@@ -494,10 +494,11 @@ public:
494 VERIFY_ARE_EQUAL(LxsstuLaunchWsl(std::format(L"mkdir -p '{}'", nestedMountPoint)), 0);
495 VERIFY_ARE_EQUAL(LxsstuLaunchWsl(std::format(L"mount --bind '{}/nested' '{}'", mountPoint, nestedMountPoint)), 0);
496
497 + const auto canonicalNestedSourceDir = std::filesystem::canonical(nestedSourceDir).wstring();
498 auto [out, err] = LxsstuLaunchWslAndCaptureOutput(std::format(L"wslpath -w '{}'", nestedMountPoint));
498 - VERIFY_ARE_EQUAL(std::filesystem::canonical(nestedSourceDir).wstring() + L"\n", out);
499 + VERIFY_ARE_EQUAL(canonicalNestedSourceDir + L"\n", out);
500
500 - std::tie(out, err) = LxsstuLaunchWslAndCaptureOutput(std::format(L"wslpath -u '{}'", nestedSourceDir.wstring()));
501 + std::tie(out, err) = LxsstuLaunchWslAndCaptureOutput(std::format(L"wslpath -u '{}'", canonicalNestedSourceDir));
502 VERIFY_ARE_EQUAL(nestedMountPoint + L"\n", out);
503
504 std::tie(out, err) = LxsstuLaunchWslAndCaptureOutput(std::format(L"cat '{}/marker'", nestedMountPoint));