[PATCH] d3d8/tests: Do not fail the test, when the device could not be created
Detlef Riekenberg
wine.dev at web.de
Sat Dec 6 16:32:26 CST 2008
---
dlls/d3d8/tests/device.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index 717f79c..ac20818 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -815,7 +815,7 @@ static void test_scene(void)
hr = IDirect3D8_CreateDevice( pD3d, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL /* no NULLREF here */, hwnd,
D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp, &pDevice );
- ok(hr == D3D_OK || hr == D3DERR_INVALIDCALL, "IDirect3D8_CreateDevice failed with %#08x\n", hr);
+
if(!pDevice)
{
skip("could not create device, IDirect3D8_CreateDevice returned %#08x\n", hr);
@@ -920,7 +920,7 @@ static void test_shader(void)
hr = IDirect3D8_CreateDevice( pD3d, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL /* no NULLREF here */, hwnd,
D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp, &pDevice );
- ok(hr == D3D_OK || hr == D3DERR_INVALIDCALL, "IDirect3D8_CreateDevice failed with %#08x\n", hr);
+
if(!pDevice)
{
skip("could not create device, IDirect3D8_CreateDevice returned %#08x\n", hr);
@@ -1109,7 +1109,7 @@ static void test_limits(void)
hr = IDirect3D8_CreateDevice( pD3d, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL /* no NULLREF here */, hwnd,
D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp, &pDevice );
- ok(hr == D3D_OK || hr == D3DERR_INVALIDCALL, "IDirect3D8_CreateDevice failed with %#08x\n", hr);
+
if(!pDevice)
{
skip("could not create device, IDirect3D8_CreateDevice returned %#08x\n", hr);
--
1.5.6.3
--=-------------1228619919900920697--
More information about the wine-patches
mailing list