[PATCH 1/2 v2] ntdll/tests: Check debug registers of a newly created thread

Alexandre Julliard julliard at winehq.org
Fri Apr 7 14:07:54 CDT 2017


Christian Inci <chris.wine at 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 at winehq.org



More information about the wine-devel mailing list