Module: wine Branch: master Commit: d3dfed51b37838855c6bcd352a631cc87a4dac6b URL: https://gitlab.winehq.org/wine/wine/-/commit/d3dfed51b37838855c6bcd352a631cc...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Sep 1 16:01:57 2023 +0200
kernel32/tests: Remove tests for the exact value of the stack pointer.
Stack pointer is randomized on Windows.
---
dlls/kernel32/tests/process.c | 4 ---- dlls/kernel32/tests/thread.c | 3 --- 2 files changed, 7 deletions(-)
diff --git a/dlls/kernel32/tests/process.c b/dlls/kernel32/tests/process.c index b80e7ec5ef8..dfb47a84745 100644 --- a/dlls/kernel32/tests/process.c +++ b/dlls/kernel32/tests/process.c @@ -3276,8 +3276,6 @@ static void test_SuspendProcessNewThread(void) } ok( ctx.Eax == (ULONG_PTR)exit_thread_ptr, "wrong eax %08lx/%p\n", ctx.Eax, exit_thread_ptr ); ok( ctx.Ebx == 0x1234, "wrong ebx %08lx\n", ctx.Ebx ); - ok( !((ctx.Esp + 0x10) & 0xfff) || broken( !((ctx.Esp + 4) & 0xfff) ), /* winxp, w2k3 */ - "esp is not at top of stack page or properly aligned: %08lx\n", ctx.Esp ); ok( (ctx.EFlags & ~2) == 0x200, "wrong flags %08lx\n", ctx.EFlags ); ok( (WORD)ctx.FloatSave.ControlWord == 0x27f, "wrong control %08lx\n", ctx.FloatSave.ControlWord ); ok( *(WORD *)ctx.ExtendedRegisters == 0x27f, "wrong control %08x\n", *(WORD *)ctx.ExtendedRegisters ); @@ -3442,8 +3440,6 @@ static void test_SuspendProcessState(void) ok( !ctx.Esi, "esi is not zero %08lx\n", ctx.Esi ); ok( !ctx.Edi, "edi is not zero %08lx\n", ctx.Edi ); } - ok( !((ctx.Esp + 0x10) & 0xfff) || broken( !((ctx.Esp + 4) & 0xfff) ), /* winxp, w2k3 */ - "esp is not at top of stack page or properly aligned: %08lx\n", ctx.Esp ); ok( (ctx.EFlags & ~2) == 0x200, "wrong flags %08lx\n", ctx.EFlags ); ok( (WORD)ctx.FloatSave.ControlWord == 0x27f, "wrong control %08lx\n", ctx.FloatSave.ControlWord ); ok( *(WORD *)ctx.ExtendedRegisters == 0x27f, "wrong control %08x\n", *(WORD *)ctx.ExtendedRegisters ); diff --git a/dlls/kernel32/tests/thread.c b/dlls/kernel32/tests/thread.c index 4addff1e199..9925da32222 100644 --- a/dlls/kernel32/tests/thread.c +++ b/dlls/kernel32/tests/thread.c @@ -1187,9 +1187,6 @@ static DWORD WINAPI test_stack( void *arg ) ok( stack == NtCurrentTeb()->Tib.StackBase, "wrong stack %p/%p\n", stack, NtCurrentTeb()->Tib.StackBase ); ok( !stack[-1], "wrong data %p = %08lx\n", stack - 1, stack[-1] ); - ok( stack[-2] == (DWORD)arg, "wrong data %p = %08lx\n", stack - 2, stack[-2] ); - ok( stack[-3] == (DWORD)test_stack, "wrong data %p = %08lx\n", stack - 3, stack[-3] ); - ok( !stack[-4], "wrong data %p = %08lx\n", stack - 4, stack[-4] ); return 0; }