ntdll/tests: Run the execution test only on x86 platforms.
This commit is contained in:
parent
20e9b3f13f
commit
94a9db6383
|
@ -1194,10 +1194,12 @@ static void test_mapprotection(void)
|
|||
addr = NULL;
|
||||
status = pNtMapViewOfSection ( h, GetCurrentProcess(), &addr, 0, 0, &offset, &count, ViewShare, 0, PAGE_READWRITE);
|
||||
ok( status == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %08x\n", status);
|
||||
#if defined(__x86_64__) || defined(__i386__)
|
||||
memset (addr, 0xc3, 1); /* lret ... in both i386 and x86_64 */
|
||||
trace("trying to execute code in the readwrite only mapped anon file...\n");
|
||||
f = addr;f();
|
||||
trace("...done.\n");
|
||||
#endif
|
||||
|
||||
status = pNtQueryVirtualMemory( GetCurrentProcess(), addr, MemoryBasicInformation, &info, sizeof(info), &retlen );
|
||||
ok( status == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %08x\n", status);
|
||||
|
|
Loading…
Reference in New Issue