[PATCH 1/2] dxgi/tests: Test output after using Alt+Enter to switch fullscreen.

Henri Verbeet hverbeet at gmail.com
Mon Jul 8 08:43:41 CDT 2019


On Mon, 8 Jul 2019 at 11:39, Zhiyi Zhang <zzhang at codeweavers.com> wrote:
> @@ -5448,11 +5449,15 @@ static void test_window_association(void)
>              PostMessageA(swapchain_desc.OutputWindow, WM_SYSKEYDOWN, VK_RETURN,
>                      (MapVirtualKeyA(VK_RETURN, MAPVK_VK_TO_VSC) << 16) | 0x20000001);
>              flush_events();
> -            hr = IDXGISwapChain_GetFullscreenState(swapchain, &fullscreen, NULL);
> +            output = NULL;
> +            hr = IDXGISwapChain_GetFullscreenState(swapchain, &fullscreen, &output);
>              ok(hr == S_OK, "Test %u: Got unexpected hr %#x.\n", i, hr);
>              ok(fullscreen == tests[i].expect_fullscreen
>                      || broken(tests[i].broken_d3d10 && fullscreen),
>                      "Test %u: Got unexpected fullscreen %#x.\n", i, fullscreen);
> +            todo_wine_if(fullscreen) ok(fullscreen ? !!output : !output, "Got wrong output.\n");
Since this is run inside a loop, you can't tell from the line number
alone which test failed.

>              wndproc = GetWindowLongPtrW(swapchain_desc.OutputWindow, GWLP_WNDPROC);
>              ok(wndproc == original_wndproc, "Text %u: Got unexpected wndproc %#lx, expected %#lx.\n",
Incidentally, I see I made a typo ("Text") above.



More information about the wine-devel mailing list