mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-11 23:39:22 -06:00
Fix ARM build
This commit is contained in:
parent
987b1b73f4
commit
a4ed4b28c6
@ -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, ""}});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user