[PATCH] ntdll/tests: Fix a test failure on Server 2003.

Thomas Faber thomas.faber at reactos.org
Sat May 23 08:10:47 CDT 2020


Signed-off-by: Thomas Faber <thomas.faber at reactos.org>
---
On my test machine, Eip is at KiFastSystemCallRet, which is not close
enough to NtGetContextThread to pass the test:
exception.c:1643: Test failed: wrong Eip 7c9493a4/7c91ee0c

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

diff --git a/dlls/ntdll/tests/exception.c b/dlls/ntdll/tests/exception.c
index 72afb0a376..213cebb657 100644
--- a/dlls/ntdll/tests/exception.c
+++ b/dlls/ntdll/tests/exception.c
@@ -1640,8 +1640,8 @@ static void test_thread_context(void)
     ok( context.Esp == expect.Esp - 12 || context.Esp == expect.Esp - 16,
         "wrong Esp %08x/%08x\n", context.Esp, expect.Esp );
     /* Eip is somewhere close to the NtGetContextThread implementation */
-    ok( (char *)context.Eip >= (char *)pNtGetContextThread - 0x10000 &&
-        (char *)context.Eip <= (char *)pNtGetContextThread + 0x10000,
+    ok( (char *)context.Eip >= (char *)pNtGetContextThread - 0x40000 &&
+        (char *)context.Eip <= (char *)pNtGetContextThread + 0x40000,
         "wrong Eip %08x/%08x\n", context.Eip, (DWORD)pNtGetContextThread );
     /* segment registers clear the high word */
     ok( context.SegCs == LOWORD(expect.SegCs), "wrong SegCs %08x/%08x\n", context.SegCs, expect.SegCs );
-- 
2.25.0.windows.1




More information about the wine-devel mailing list