[PATCH 3/5] d3d8/tests: Test detaching adapters.

Henri Verbeet hverbeet at gmail.com
Tue Mar 24 14:27:29 CDT 2020


On Tue, 24 Mar 2020 at 12:22, Zhiyi Zhang <zzhang at codeweavers.com> wrote:
> +        /* Detaching adapter shouldn't reduce the adapter count */
> +        expected_adapter_count = adapter_count;
> +        adapter_count = IDirect3D8_GetAdapterCount(d3d);
> +        ok(adapter_count == expected_adapter_count,
> +                "Adapter %u: Got unexpected adapter count %u, expected %u.\n", i, adapter_count,
> +                expected_adapter_count);
> +
> +        monitor = IDirect3D8_GetAdapterMonitor(d3d, i);
> +        ok(!monitor, "Adapter %u: Expect monitor to be NULL.\n", i);
> +
Not an issue with this patch, but this does raise the possibility that
some of the earlier checks in this test may not be correct for the
case where a monitor was detached prior to running the test.



More information about the wine-devel mailing list