Commit d3dfed51 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32/tests: Remove tests for the exact value of the stack pointer.

Stack pointer is randomized on Windows.
parent 620306ff
......@@ -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 );
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment