[PATCH v2] dxgi/tests: Fix test failure on Windows 7.

Huw Davies huw at codeweavers.com
Thu Jan 12 10:21:47 CST 2017


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
v2: Henri suggested marking the new error as broken().

 dlls/dxgi/tests/device.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/dxgi/tests/device.c b/dlls/dxgi/tests/device.c
index db4c57e..0b3891f 100644
--- a/dlls/dxgi/tests/device.c
+++ b/dlls/dxgi/tests/device.c
@@ -1616,8 +1616,10 @@ static void test_set_fullscreen(void)
     ok(SUCCEEDED(hr), "CreateSwapChain failed, hr %#x.\n", hr);
     check_swapchain_fullscreen_state(swapchain, &initial_state);
     hr = IDXGISwapChain_SetFullscreenState(swapchain, TRUE, NULL);
-    ok(SUCCEEDED(hr) || hr == DXGI_ERROR_NOT_CURRENTLY_AVAILABLE, "SetFullscreenState failed, hr %#x.\n", hr);
-    if (hr == DXGI_ERROR_NOT_CURRENTLY_AVAILABLE)
+    ok(SUCCEEDED(hr) || hr == DXGI_ERROR_NOT_CURRENTLY_AVAILABLE ||
+       broken(hr == DXGI_ERROR_UNSUPPORTED), /* Win 7 testbot */
+       "SetFullscreenState failed, hr %#x.\n", hr);
+    if (FAILED(hr))
     {
         skip("Could not change fullscreen state.\n");
         goto done;
-- 
2.10.2




More information about the wine-patches mailing list