Re: [PATCH 1/2 v2] ntdll/tests: Check debug registers of a newly created thread
7 Apr
2017
7 Apr
'17
7:07 p.m.
Christian Inci <chris.wine(a)broke-the-inter.net> writes:
+static void test_thread_debug_registers(void) +{ + HANDLE thread; + CONTEXT ctx; + NTSTATUS status; + + ctx.ContextFlags = CONTEXT_DEBUG_REGISTERS; + ctx.Dr0 = 0xffffffff; + ctx.Dr1 = 0xffffffff; + ctx.Dr2 = 0xffffffff; + ctx.Dr3 = 0xffffffff; + ctx.Dr6 = 0xffffffff; + ctx.Dr7 = 0xffffffff; + status = pNtSetContextThread(GetCurrentThread(), &ctx); + todo_wine ok(status == STATUS_SUCCESS, "NtSetContextThread failed with %x\n", status);
It would be a more convincing test if setting the context succeeded. The failure is of course interesting too, but that could be a separate test. -- Alexandre Julliard julliard(a)winehq.org
3176
Age (days ago)
3176
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard