未验证 提交 9fa908c6 编写于 作者: J Jan Vorlicek 提交者: GitHub

Fix a PAL filemapping test for macOS arm64 (#67352)

This test was disabled for macOS arm64, adding MEM_RESERVE_EXECUTABLE fixes the issue.
上级 a00db517
......@@ -31,7 +31,7 @@ PALTEST(filemapping_memmgt_VirtualProtect_test4_paltest_virtualprotect_test4, "f
//Allocate the physical storage in memory or in the paging file on disk
lpVirtualAddress = VirtualAlloc(NULL,//determine where to allocate the region
REGIONSIZE, //specify the size
MEM_COMMIT, //allocation type
MEM_COMMIT | MEM_RESERVE_EXECUTABLE, //allocation type
PAGE_READONLY); //access protection
if(NULL == lpVirtualAddress)
{
......
......@@ -30,10 +30,4 @@
</ExcludeList>
</ItemGroup>
<ItemGroup Condition="'$(TargetArchitecture)' == 'arm64' and '$(TargetOS)' == 'OSX'">
<ExcludeList Include="filemapping_memmgt/VirtualProtect/test4/paltest_virtualprotect_test4">
<!-- Test tries to set RWX on general memory page -->
<Issue>https://github.com/dotnet/runtime/issues/48783</Issue>
</ExcludeList>
</ItemGroup>
</Project>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册