Alexandre Julliard : ntdll/tests: Mask reserved bits before testing
dr7.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Mar 14 07:25:27 CDT 2007
Module: wine
Branch: master
Commit: 0963b84603dd33166e97abfc38dfc09943f98abc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0963b84603dd33166e97abfc38dfc09943f98abc
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Mar 14 12:01:12 2007 +0100
ntdll/tests: Mask reserved bits before testing dr7.
Also some spelling fixes.
---
dlls/ntdll/tests/exception.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/ntdll/tests/exception.c b/dlls/ntdll/tests/exception.c
index 58306d9..a8aa975 100644
--- a/dlls/ntdll/tests/exception.c
+++ b/dlls/ntdll/tests/exception.c
@@ -321,7 +321,7 @@ static void run_rtlraiseexception_test(DWORD exceptioncode)
pNtCurrentTeb()->Tib.ExceptionList = frame.Prev;
}
-static void test_rtlraiseexcpetion(void)
+static void test_rtlraiseexception(void)
{
if (!pRtlRaiseException)
{
@@ -553,7 +553,7 @@ static void test_exceptions(void)
res = pNtGetContextThread(GetCurrentThread(), &ctx);
ok (res == STATUS_SUCCESS,"NtGetContextThread failed with %x\n", res);
ok(ctx.Dr0 == 0x42424242,"failed to set debugregister 0 to 0x42424242, got %x\n", ctx.Dr0);
- ok(ctx.Dr7 == 0x155,"failed to set debugregister 7 to 0x155, got %x\n", ctx.Dr7);
+ ok((ctx.Dr7 & ~0xdc00) == 0x155,"failed to set debugregister 7 to 0x155, got %x\n", ctx.Dr7);
/* test single stepping behavior */
got_exception = 0;
@@ -644,7 +644,7 @@ static void test_debugger(void)
status = pNtGetContextThread(pi.hThread, &ctx);
ok(!status, "NtGetContextThread failed with 0x%x\n", status);
- trace("excpetion 0x%x at %p firstchance=%d Eip=0x%x, Eax=0x%x\n",
+ trace("exception 0x%x at %p firstchance=%d Eip=0x%x, Eax=0x%x\n",
de.u.Exception.ExceptionRecord.ExceptionCode,
de.u.Exception.ExceptionRecord.ExceptionAddress, de.u.Exception.dwFirstChance, ctx.Eip, ctx.Eax);
@@ -862,7 +862,7 @@ START_TEST(exception)
test_prot_fault();
test_exceptions();
- test_rtlraiseexcpetion();
+ test_rtlraiseexception();
test_debugger();
test_simd_exceptions();
More information about the wine-cvs
mailing list