ntdll: Fix exception tests that fail on native Windows

Petr Tesarik hat at tesarici.cz
Tue Apr 4 07:59:37 CDT 2006


Hi everyone!

This patch adjusts the expected values in the exception test, so that
it does not fail on WinXP Professional.

ChangeLog:

* dlls/ntdll/tests/exception.c:
  ntdll: Fix the tests so that they pass on WinXP
-------------- next part --------------
Index: exception.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/tests/exception.c,v
retrieving revision 1.3
diff -u -r1.3 exception.c
--- exception.c	12 Jan 2006 12:46:37 -0000	1.3
+++ exception.c	4 Apr 2006 12:49:58 -0000
@@ -93,7 +93,7 @@
 
     /* test loading an invalid selector */
     { { 0xb8, 0xef, 0xbe, 0x00, 0x00, 0x8e, 0xe8, 0xc3 },  /* mov $beef,%ax; mov %ax,%gs; ret */
-      5, 2, STATUS_ACCESS_VIOLATION, 2, { 0, 0xbee8 } },
+      5, 2, STATUS_ACCESS_VIOLATION, 2, { 0, 0xffffffff } },
 
     /* test accessing a zero selector */
     { { 0x06, 0x31, 0xc0, 0x8e, 0xc0, 0x26, 0xa1, 0, 0, 0, 0, 0x07, 0xc3 },
@@ -106,7 +106,7 @@
 
     /* test overlong instruction (limit is 16 bytes) */
     { { 0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0xfa,0xc3 },
-      0, 16, STATUS_ACCESS_VIOLATION, 2, { 0, 0xffffffff } },
+      0, 16, STATUS_ILLEGAL_INSTRUCTION, 0 },
     { { 0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0xfa,0xc3 },
       0, 15, STATUS_PRIVILEGED_INSTRUCTION, 0 },
 


More information about the wine-patches mailing list