=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: ntdll/tests: Run the execution test only on x86 platforms.
Alexandre Julliard
julliard at winehq.org
Thu Sep 8 14:52:10 CDT 2011
Module: wine
Branch: master
Commit: 94a9db6383f5915826267b2641ced193a661b2f0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=94a9db6383f5915826267b2641ced193a661b2f0
Author: André Hentschel <nerv at dawncrow.de>
Date: Wed Sep 7 18:54:45 2011 +0200
ntdll/tests: Run the execution test only on x86 platforms.
---
dlls/ntdll/tests/info.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/tests/info.c b/dlls/ntdll/tests/info.c
index 2d5c94f..ec1ce3d 100644
--- a/dlls/ntdll/tests/info.c
+++ b/dlls/ntdll/tests/info.c
@@ -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);
More information about the wine-cvs
mailing list