From: Zhiyi Zhang <zzhang@codeweavers.com> Fix a prematurely skipped test like the following. The test has been checked on a Windows 11 23H2 physical machine. ``` dxgi.c:2156: Tests skipped: Fullscreen not supported. ``` --- dlls/dxgi/tests/dxgi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/dxgi/tests/dxgi.c b/dlls/dxgi/tests/dxgi.c index 0886adf76bd..37c4ac36e84 100644 --- a/dlls/dxgi/tests/dxgi.c +++ b/dlls/dxgi/tests/dxgi.c @@ -2143,6 +2143,11 @@ static void test_create_swapchain(void) check_window_fullscreen_state(creation_desc.OutputWindow, &initial_state.fullscreen_state); /* Fullscreen */ + /* Call flush_events() to make sure that the previously destroyed output windows are disappeared + * from the screen. Otherwise, creating a fullscreen swapchain returns DXGI_STATUS_OCCLUDED and + * gets a windowed swapchain instead. It's still possible that there is another window on the screen + * in the test environment so the following DXGI_STATUS_OCCLUDED return code is kept accepted */ + flush_events(); creation_desc.Windowed = FALSE; hr = IDXGIFactory_CreateSwapChain(factory, obj, &creation_desc, &swapchain); ok(hr == S_OK || hr == DXGI_STATUS_OCCLUDED, "Got unexpected hr %#lx.\n", hr); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/11231