[PATCH 1/7] d3d8/tests: Skip test_reset() when device is initially lost.

Józef Kucia jkucia at codeweavers.com
Mon Aug 22 07:53:44 CDT 2016


Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 dlls/d3d8/tests/device.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index ffb18bd..711c357 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -1369,6 +1369,12 @@ static void test_reset(void)
         goto cleanup;
     }
     hr = IDirect3DDevice8_TestCooperativeLevel(device1);
+    /* This skips the test on testbot Win 8 VMs. */
+    if (hr == D3DERR_DEVICELOST)
+    {
+        skip("Device is lost.\n");
+        goto cleanup;
+    }
     ok(SUCCEEDED(hr), "TestCooperativeLevel failed, hr %#x.\n", hr);
 
     hr = IDirect3DDevice8_GetDeviceCaps(device1, &caps);
-- 
2.7.3




More information about the wine-patches mailing list