d3d8/tests: Skip test_reset() when device is initially lost.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Józef Kucia 2016-08-22 14:53:44 +02:00 committed by Alexandre Julliard
parent e38f52f17a
commit f37a438e79
1 changed files with 6 additions and 0 deletions

View File

@ -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);