Sven Baars : ntdll/tests: Fix some test failures on Windows 10.

Alexandre Julliard julliard at winehq.org
Mon Oct 28 16:43:37 CDT 2019


Module: wine
Branch: master
Commit: e8f4251423e9be35ae55174447732b53b6745de3
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=e8f4251423e9be35ae55174447732b53b6745de3

Author: Sven Baars <sven.wine at gmail.com>
Date:   Sat Oct 26 14:56:39 2019 +0200

ntdll/tests: Fix some test failures on Windows 10.

Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/tests/info.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/tests/info.c b/dlls/ntdll/tests/info.c
index 64c39f0940..30ed6e5ef9 100644
--- a/dlls/ntdll/tests/info.c
+++ b/dlls/ntdll/tests/info.c
@@ -1864,8 +1864,10 @@ static void test_readvirtualmemory(void)
 
     /* illegal local address */
     status = pNtReadVirtualMemory(process, teststring, (void *)0x1234, 12, &readcount);
-    ok( status == STATUS_ACCESS_VIOLATION, "Expected STATUS_ACCESS_VIOLATION, got %08x\n", status);
-    ok( readcount == 0, "Expected to read 0 bytes, got %ld\n",readcount);
+    ok( status == STATUS_ACCESS_VIOLATION || broken(status == STATUS_PARTIAL_COPY) /* Win10 */,
+        "Expected STATUS_ACCESS_VIOLATION, got %08x\n", status);
+    if (status == STATUS_ACCESS_VIOLATION)
+        ok( readcount == 0, "Expected to read 0 bytes, got %ld\n",readcount);
 
     CloseHandle(process);
 }




More information about the wine-cvs mailing list