1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

ntdll/tests: Restore x86-64 #AC exception test in test_exceptions().

This commit is contained in:
Jinoh Kang 2024-01-06 22:40:45 +09:00 committed by Alexandre Julliard
parent b07ce09982
commit 015434d24c

View file

@ -3446,8 +3446,13 @@ static DWORD WINAPI align_check_handler( EXCEPTION_RECORD *rec, ULONG64 frame,
#ifdef __GNUC__
__asm__ volatile( "pushfq; andl $~0x40000,(%rsp); popfq" );
#endif
ok (!(context->EFlags & 0x40000), "eflags has AC bit set\n");
ok (context->EFlags & 0x40000, "eflags has AC bit unset\n");
got_exception++;
if (got_exception != 1)
{
ok(broken(1) /* win7 */, "exception should occur only once");
context->EFlags &= ~0x40000;
}
return ExceptionContinueExecution;
}
@ -3588,12 +3593,10 @@ static void test_exceptions(void)
ok(got_exception == 3, "expected 3 single step exceptions, got %d\n", got_exception);
/* test alignment exceptions */
if (0) /* broken on Windows */
{
got_exception = 0;
run_exception_test(align_check_handler, NULL, align_check_code, sizeof(align_check_code), 0);
ok(got_exception == 0, "got %d alignment faults, expected 0\n", got_exception);
}
todo_wine
ok(got_exception == 1 || broken(got_exception == 2) /* win7 */, "got %d alignment faults, expected 1\n", got_exception);
/* test direction flag */
got_exception = 0;