Fix ARM build

This commit is contained in:
Blue 2025-11-26 15:12:32 -08:00
parent 987b1b73f4
commit a4ed4b28c6

View File

@ -1141,6 +1141,12 @@ class WSLATests
{
WSL2_TEST_ONLY();
if constexpr (wsl::shared::Arm64)
{
LogSkipped("Skipping CreateContainer test case for ARM64");
}
else
{
auto storageVhd = std::filesystem::current_path() / "storage.vhdx";
// Create a 1G temporary VHD.
@ -1149,7 +1155,8 @@ class WSLATests
wsl::core::filesystem::CreateVhd(storageVhd.native().c_str(), 1024 * 1024 * 1024, nullptr, true, false);
}
auto cleanup = wil::scope_exit_log(WI_DIAGNOSTICS_INFO, [&]() { LOG_IF_WIN32_BOOL_FALSE(DeleteFileW(storageVhd.c_str())); });
auto cleanup =
wil::scope_exit_log(WI_DIAGNOSTICS_INFO, [&]() { LOG_IF_WIN32_BOOL_FALSE(DeleteFileW(storageVhd.c_str())); });
VIRTUAL_MACHINE_SETTINGS settings{};
settings.CpuCount = 4;
@ -1214,4 +1221,5 @@ class WSLATests
ValidateProcessOutput(process, {{1, ""}});
}
}
}
};