Huw Davies : dxgi/tests: Fix test failure on Windows 7.

Alexandre Julliard julliard at winehq.org
Thu Jan 12 14:45:44 CST 2017


Module: wine
Branch: master
Commit: 083b35e7c77c32f2f011a7e4188edaf605e0848c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=083b35e7c77c32f2f011a7e4188edaf605e0848c

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Jan 12 16:21:47 2017 +0000

dxgi/tests: Fix test failure on Windows 7.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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;




More information about the wine-cvs mailing list