Christian Inci chris.wine@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.