Commit 019143a6 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ddraw/tests: Unify the skip messages a bit.

parent a86aba4b
...@@ -745,13 +745,13 @@ static void test_coop_level_d3d_state(void) ...@@ -745,13 +745,13 @@ static void test_coop_level_d3d_state(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw_Release(ddraw); IDirectDraw_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -847,10 +847,9 @@ static void test_surface_interface_mismatch(void) ...@@ -847,10 +847,9 @@ static void test_surface_interface_mismatch(void)
goto cleanup; goto cleanup;
} }
hr = IDirectDraw_QueryInterface(ddraw, &IID_IDirect3D, (void **)&d3d); if (FAILED(hr = IDirectDraw_QueryInterface(ddraw, &IID_IDirect3D, (void **)&d3d)))
if (FAILED(hr))
{ {
skip("Failed to get the IDirect3D interface, skipping test.\n"); skip("D3D interface is not available, skipping test.\n");
goto cleanup; goto cleanup;
} }
...@@ -951,14 +950,14 @@ static void test_viewport(void) ...@@ -951,14 +950,14 @@ static void test_viewport(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
window = CreateWindowA("static", "ddraw_test", WS_OVERLAPPEDWINDOW, window = CreateWindowA("static", "ddraw_test", WS_OVERLAPPEDWINDOW,
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw_Release(ddraw); IDirectDraw_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -1083,13 +1082,13 @@ static void test_zenable(void) ...@@ -1083,13 +1082,13 @@ static void test_zenable(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw_Release(ddraw); IDirectDraw_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -1208,13 +1207,13 @@ static void test_ck_rgba(void) ...@@ -1208,13 +1207,13 @@ static void test_ck_rgba(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw_Release(ddraw); IDirectDraw_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -1376,13 +1375,13 @@ static void test_ck_default(void) ...@@ -1376,13 +1375,13 @@ static void test_ck_default(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw_Release(ddraw); IDirectDraw_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -1635,7 +1634,7 @@ static void test_surface_qi(void) ...@@ -1635,7 +1634,7 @@ static void test_surface_qi(void)
* doesn't support e.g. the IDirect3DTexture interfaces. */ * doesn't support e.g. the IDirect3DTexture interfaces. */
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw_Release(ddraw); IDirectDraw_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -1715,13 +1714,13 @@ static void test_device_qi(void) ...@@ -1715,13 +1714,13 @@ static void test_device_qi(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw_Release(ddraw); IDirectDraw_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -1757,7 +1756,7 @@ static void test_wndproc(void) ...@@ -1757,7 +1756,7 @@ static void test_wndproc(void)
/* DDSCL_EXCLUSIVE replaces the window's window proc. */ /* DDSCL_EXCLUSIVE replaces the window's window proc. */
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create IDirectDraw object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -2657,7 +2656,8 @@ static void test_initialize(void) ...@@ -2657,7 +2656,8 @@ static void test_initialize(void)
ok(hr == DDERR_ALREADYINITIALIZED, "Initialize returned hr %#x, expected DDERR_ALREADYINITIALIZED.\n", hr); ok(hr == DDERR_ALREADYINITIALIZED, "Initialize returned hr %#x, expected DDERR_ALREADYINITIALIZED.\n", hr);
IDirect3D_Release(d3d); IDirect3D_Release(d3d);
} }
else skip("Failed to query IDirect3D interface, skipping tests.\n"); else
skip("D3D interface is not available, skipping test.\n");
hr = IDirectDraw_Initialize(ddraw, NULL); hr = IDirectDraw_Initialize(ddraw, NULL);
ok(hr == DD_OK, "Initialize returned hr %#x, expected DD_OK.\n", hr); ok(hr == DD_OK, "Initialize returned hr %#x, expected DD_OK.\n", hr);
hr = IDirectDraw_Initialize(ddraw, NULL); hr = IDirectDraw_Initialize(ddraw, NULL);
...@@ -2743,13 +2743,13 @@ static void test_clear_rect_count(void) ...@@ -2743,13 +2743,13 @@ static void test_clear_rect_count(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw_Release(ddraw); IDirectDraw_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -2829,7 +2829,7 @@ static void test_coop_level_activateapp(void) ...@@ -2829,7 +2829,7 @@ static void test_coop_level_activateapp(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create IDirectDraw object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -2987,13 +2987,13 @@ static void test_unsupported_formats(void) ...@@ -2987,13 +2987,13 @@ static void test_unsupported_formats(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw_Release(ddraw); IDirectDraw_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -3226,7 +3226,7 @@ static void test_rt_caps(void) ...@@ -3226,7 +3226,7 @@ static void test_rt_caps(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -3372,7 +3372,7 @@ static void test_surface_lock(void) ...@@ -3372,7 +3372,7 @@ static void test_surface_lock(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -3463,7 +3463,7 @@ static void test_surface_discard(void) ...@@ -3463,7 +3463,7 @@ static void test_surface_discard(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
......
...@@ -688,13 +688,13 @@ static void test_coop_level_d3d_state(void) ...@@ -688,13 +688,13 @@ static void test_coop_level_d3d_state(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw2_Release(ddraw); IDirectDraw2_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -804,10 +804,9 @@ static void test_surface_interface_mismatch(void) ...@@ -804,10 +804,9 @@ static void test_surface_interface_mismatch(void)
goto cleanup; goto cleanup;
} }
hr = IDirectDraw2_QueryInterface(ddraw, &IID_IDirect3D2, (void **)&d3d); if (FAILED(hr = IDirectDraw2_QueryInterface(ddraw, &IID_IDirect3D2, (void **)&d3d)))
if (FAILED(hr))
{ {
skip("Failed to get the IDirect3D2 interface, skipping test.\n"); skip("D3D interface is not available, skipping test.\n");
goto cleanup; goto cleanup;
} }
...@@ -921,13 +920,13 @@ static void test_depth_blit(void) ...@@ -921,13 +920,13 @@ static void test_depth_blit(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw2_Release(ddraw); IDirectDraw2_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -1075,7 +1074,7 @@ static void test_texture_load_ckey(void) ...@@ -1075,7 +1074,7 @@ static void test_texture_load_ckey(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
hr = IDirectDraw2_SetCooperativeLevel(ddraw, NULL, DDSCL_NORMAL); hr = IDirectDraw2_SetCooperativeLevel(ddraw, NULL, DDSCL_NORMAL);
...@@ -1184,14 +1183,14 @@ static void test_viewport(void) ...@@ -1184,14 +1183,14 @@ static void test_viewport(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
window = CreateWindowA("static", "ddraw_test", WS_OVERLAPPEDWINDOW, window = CreateWindowA("static", "ddraw_test", WS_OVERLAPPEDWINDOW,
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw_Release(ddraw); IDirectDraw_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -1201,7 +1200,7 @@ static void test_viewport(void) ...@@ -1201,7 +1200,7 @@ static void test_viewport(void)
ok(SUCCEEDED(hr) || hr == E_NOINTERFACE, "Failed to get d3d interface, hr %#x.\n", hr); ok(SUCCEEDED(hr) || hr == E_NOINTERFACE, "Failed to get d3d interface, hr %#x.\n", hr);
if (FAILED(hr)) if (FAILED(hr))
{ {
skip("Direct3D not available, skipping tests\n"); skip("D3D interface is not available, skipping test.\n");
IDirectDraw2_Release(ddraw); IDirectDraw2_Release(ddraw);
return; return;
} }
...@@ -1377,13 +1376,13 @@ static void test_zenable(void) ...@@ -1377,13 +1376,13 @@ static void test_zenable(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw2_Release(ddraw); IDirectDraw2_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -1482,13 +1481,13 @@ static void test_ck_rgba(void) ...@@ -1482,13 +1481,13 @@ static void test_ck_rgba(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw2_Release(ddraw); IDirectDraw2_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -1625,13 +1624,13 @@ static void test_ck_default(void) ...@@ -1625,13 +1624,13 @@ static void test_ck_default(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw2_Release(ddraw); IDirectDraw2_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -1832,7 +1831,7 @@ static void test_surface_qi(void) ...@@ -1832,7 +1831,7 @@ static void test_surface_qi(void)
* doesn't support e.g. the IDirect3DTexture interfaces. */ * doesn't support e.g. the IDirect3DTexture interfaces. */
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw2_Release(ddraw); IDirectDraw2_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -1911,13 +1910,13 @@ static void test_device_qi(void) ...@@ -1911,13 +1910,13 @@ static void test_device_qi(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw2_Release(ddraw); IDirectDraw2_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -1953,7 +1952,7 @@ static void test_wndproc(void) ...@@ -1953,7 +1952,7 @@ static void test_wndproc(void)
/* DDSCL_EXCLUSIVE replaces the window's window proc. */ /* DDSCL_EXCLUSIVE replaces the window's window proc. */
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create IDirectDraw2 object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -3025,13 +3024,13 @@ static void test_clear_rect_count(void) ...@@ -3025,13 +3024,13 @@ static void test_clear_rect_count(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw2_Release(ddraw); IDirectDraw2_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -3297,13 +3296,13 @@ static void test_lighting_interface_versions(void) ...@@ -3297,13 +3296,13 @@ static void test_lighting_interface_versions(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw2_Release(ddraw); IDirectDraw2_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -3414,7 +3413,7 @@ static void test_coop_level_activateapp(void) ...@@ -3414,7 +3413,7 @@ static void test_coop_level_activateapp(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create IDirectDraw2 object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -3572,13 +3571,13 @@ static void test_unsupported_formats(void) ...@@ -3572,13 +3571,13 @@ static void test_unsupported_formats(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
if (!(device = create_device(ddraw, window, DDSCL_NORMAL))) if (!(device = create_device(ddraw, window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
IDirectDraw2_Release(ddraw); IDirectDraw2_Release(ddraw);
DestroyWindow(window); DestroyWindow(window);
return; return;
...@@ -3853,7 +3852,7 @@ static void test_rt_caps(void) ...@@ -3853,7 +3852,7 @@ static void test_rt_caps(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -4055,7 +4054,7 @@ static void test_surface_lock(void) ...@@ -4055,7 +4054,7 @@ static void test_surface_lock(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -4145,7 +4144,7 @@ static void test_surface_discard(void) ...@@ -4145,7 +4144,7 @@ static void test_surface_discard(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
......
...@@ -874,7 +874,7 @@ static void test_coop_level_d3d_state(void) ...@@ -874,7 +874,7 @@ static void test_coop_level_d3d_state(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -971,10 +971,9 @@ static void test_surface_interface_mismatch(void) ...@@ -971,10 +971,9 @@ static void test_surface_interface_mismatch(void)
hr = IDirectDrawSurface4_QueryInterface(surface, &IID_IDirectDrawSurface3, (void **)&surface3); hr = IDirectDrawSurface4_QueryInterface(surface, &IID_IDirectDrawSurface3, (void **)&surface3);
ok(SUCCEEDED(hr), "Failed to QI IDirectDrawSurface3, hr %#x.\n", hr); ok(SUCCEEDED(hr), "Failed to QI IDirectDrawSurface3, hr %#x.\n", hr);
hr = IDirectDraw4_QueryInterface(ddraw, &IID_IDirect3D3, (void **)&d3d); if (FAILED(hr = IDirectDraw4_QueryInterface(ddraw, &IID_IDirect3D3, (void **)&d3d)))
if (FAILED(hr))
{ {
skip("Failed to get the IDirect3D7 interface, skipping test.\n"); skip("D3D interface is not available, skipping test.\n");
goto cleanup; goto cleanup;
} }
...@@ -1090,7 +1089,7 @@ static void test_depth_blit(void) ...@@ -1090,7 +1089,7 @@ static void test_depth_blit(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -1238,7 +1237,7 @@ static void test_texture_load_ckey(void) ...@@ -1238,7 +1237,7 @@ static void test_texture_load_ckey(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
hr = IDirectDraw4_SetCooperativeLevel(ddraw, NULL, DDSCL_NORMAL); hr = IDirectDraw4_SetCooperativeLevel(ddraw, NULL, DDSCL_NORMAL);
...@@ -1344,7 +1343,7 @@ static void test_viewport(void) ...@@ -1344,7 +1343,7 @@ static void test_viewport(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -1527,7 +1526,7 @@ static void test_zenable(void) ...@@ -1527,7 +1526,7 @@ static void test_zenable(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -1625,7 +1624,7 @@ static void test_ck_rgba(void) ...@@ -1625,7 +1624,7 @@ static void test_ck_rgba(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -1765,7 +1764,7 @@ static void test_ck_default(void) ...@@ -1765,7 +1764,7 @@ static void test_ck_default(void)
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -1958,7 +1957,7 @@ static void test_surface_qi(void) ...@@ -1958,7 +1957,7 @@ static void test_surface_qi(void)
* doesn't support e.g. the IDirect3DTexture interfaces. */ * doesn't support e.g. the IDirect3DTexture interfaces. */
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -2043,7 +2042,7 @@ static void test_device_qi(void) ...@@ -2043,7 +2042,7 @@ static void test_device_qi(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -2077,7 +2076,7 @@ static void test_wndproc(void) ...@@ -2077,7 +2076,7 @@ static void test_wndproc(void)
/* DDSCL_EXCLUSIVE replaces the window's window proc. */ /* DDSCL_EXCLUSIVE replaces the window's window proc. */
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create IDirectDraw4 object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -3112,7 +3111,7 @@ static void test_vb_discard(void) ...@@ -3112,7 +3111,7 @@ static void test_vb_discard(void)
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -3228,7 +3227,7 @@ static void test_draw_strided(void) ...@@ -3228,7 +3227,7 @@ static void test_draw_strided(void)
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -3279,7 +3278,7 @@ static void test_clear_rect_count(void) ...@@ -3279,7 +3278,7 @@ static void test_clear_rect_count(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -3592,7 +3591,7 @@ static void test_lighting_interface_versions(void) ...@@ -3592,7 +3591,7 @@ static void test_lighting_interface_versions(void)
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -3695,7 +3694,7 @@ static void test_coop_level_activateapp(void) ...@@ -3695,7 +3694,7 @@ static void test_coop_level_activateapp(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create IDirectDraw4 object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -3849,7 +3848,7 @@ static void test_texturemanage(void) ...@@ -3849,7 +3848,7 @@ static void test_texturemanage(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create IDirectDraw4 object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -4015,7 +4014,7 @@ static void test_block_formats_creation(void) ...@@ -4015,7 +4014,7 @@ static void test_block_formats_creation(void)
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -4180,7 +4179,7 @@ static void test_unsupported_formats(void) ...@@ -4180,7 +4179,7 @@ static void test_unsupported_formats(void)
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -4438,7 +4437,7 @@ static void test_rt_caps(void) ...@@ -4438,7 +4437,7 @@ static void test_rt_caps(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -4653,7 +4652,7 @@ static void test_surface_lock(void) ...@@ -4653,7 +4652,7 @@ static void test_surface_lock(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -4752,7 +4751,7 @@ static void test_surface_discard(void) ...@@ -4752,7 +4751,7 @@ static void test_surface_discard(void)
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create a ddraw object, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
......
...@@ -379,7 +379,7 @@ static void test_process_vertices(void) ...@@ -379,7 +379,7 @@ static void test_process_vertices(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create a ddraw object, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -546,7 +546,7 @@ static void test_coop_level_create_device_window(void) ...@@ -546,7 +546,7 @@ static void test_coop_level_create_device_window(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create a 3D device, skipping test.\n"); skip("Failed to create a ddraw object, skipping test.\n");
DestroyWindow(focus_window); DestroyWindow(focus_window);
return; return;
} }
...@@ -840,7 +840,7 @@ static void test_coop_level_d3d_state(void) ...@@ -840,7 +840,7 @@ static void test_coop_level_d3d_state(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -932,10 +932,9 @@ static void test_surface_interface_mismatch(void) ...@@ -932,10 +932,9 @@ static void test_surface_interface_mismatch(void)
hr = IDirectDrawSurface7_QueryInterface(surface, &IID_IDirectDrawSurface3, (void **)&surface3); hr = IDirectDrawSurface7_QueryInterface(surface, &IID_IDirectDrawSurface3, (void **)&surface3);
ok(SUCCEEDED(hr), "Failed to QI IDirectDrawSurface3, hr %#x.\n", hr); ok(SUCCEEDED(hr), "Failed to QI IDirectDrawSurface3, hr %#x.\n", hr);
hr = IDirectDraw7_QueryInterface(ddraw, &IID_IDirect3D7, (void **)&d3d); if (FAILED(hr = IDirectDraw7_QueryInterface(ddraw, &IID_IDirect3D7, (void **)&d3d)))
if (FAILED(hr))
{ {
skip("Failed to get the IDirect3D7 interface, skipping test.\n"); skip("D3D interface is not available, skipping test.\n");
goto cleanup; goto cleanup;
} }
...@@ -1045,7 +1044,7 @@ static void test_depth_blit(void) ...@@ -1045,7 +1044,7 @@ static void test_depth_blit(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -1191,7 +1190,7 @@ static void test_texture_load_ckey(void) ...@@ -1191,7 +1190,7 @@ static void test_texture_load_ckey(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -1289,7 +1288,7 @@ static void test_zenable(void) ...@@ -1289,7 +1288,7 @@ static void test_zenable(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -1379,7 +1378,7 @@ static void test_ck_rgba(void) ...@@ -1379,7 +1378,7 @@ static void test_ck_rgba(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -1507,7 +1506,7 @@ static void test_ck_default(void) ...@@ -1507,7 +1506,7 @@ static void test_ck_default(void)
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -1693,7 +1692,7 @@ static void test_surface_qi(void) ...@@ -1693,7 +1692,7 @@ static void test_surface_qi(void)
* doesn't support e.g. the IDirect3DTexture interfaces. */ * doesn't support e.g. the IDirect3DTexture interfaces. */
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -1778,7 +1777,7 @@ static void test_device_qi(void) ...@@ -1778,7 +1777,7 @@ static void test_device_qi(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -1812,7 +1811,7 @@ static void test_wndproc(void) ...@@ -1812,7 +1811,7 @@ static void test_wndproc(void)
/* DDSCL_EXCLUSIVE replaces the window's window proc. */ /* DDSCL_EXCLUSIVE replaces the window's window proc. */
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create IDirectDraw7 object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -2847,7 +2846,7 @@ static void test_vb_discard(void) ...@@ -2847,7 +2846,7 @@ static void test_vb_discard(void)
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -2961,7 +2960,7 @@ static void test_draw_strided(void) ...@@ -2961,7 +2960,7 @@ static void test_draw_strided(void)
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -3009,7 +3008,7 @@ static void test_clear_rect_count(void) ...@@ -3009,7 +3008,7 @@ static void test_clear_rect_count(void)
0, 0, 640, 480, 0, 0, 0, 0); 0, 0, 640, 480, 0, 0, 0, 0);
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -3219,7 +3218,7 @@ static void test_fog_special(void) ...@@ -3219,7 +3218,7 @@ static void test_fog_special(void)
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -3414,7 +3413,7 @@ static void test_lighting_interface_versions(void) ...@@ -3414,7 +3413,7 @@ static void test_lighting_interface_versions(void)
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -3509,7 +3508,7 @@ static void test_coop_level_activateapp(void) ...@@ -3509,7 +3508,7 @@ static void test_coop_level_activateapp(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create IDirectDraw7 object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -3663,7 +3662,7 @@ static void test_texturemanage(void) ...@@ -3663,7 +3662,7 @@ static void test_texturemanage(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create IDirectDraw7 object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -3829,7 +3828,7 @@ static void test_block_formats_creation(void) ...@@ -3829,7 +3828,7 @@ static void test_block_formats_creation(void)
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -3994,7 +3993,7 @@ static void test_unsupported_formats(void) ...@@ -3994,7 +3993,7 @@ static void test_unsupported_formats(void)
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create D3D device, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
...@@ -4254,7 +4253,7 @@ static void test_rt_caps(void) ...@@ -4254,7 +4253,7 @@ static void test_rt_caps(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -4514,7 +4513,7 @@ static void test_surface_lock(void) ...@@ -4514,7 +4513,7 @@ static void test_surface_lock(void)
if (!(ddraw = create_ddraw())) if (!(ddraw = create_ddraw()))
{ {
skip("Failed to create ddraw object, skipping tests.\n"); skip("Failed to create a ddraw object, skipping test.\n");
return; return;
} }
...@@ -4639,7 +4638,7 @@ static void test_surface_discard(void) ...@@ -4639,7 +4638,7 @@ static void test_surface_discard(void)
if (!(device = create_device(window, DDSCL_NORMAL))) if (!(device = create_device(window, DDSCL_NORMAL)))
{ {
skip("Failed to create a ddraw object, skipping test.\n"); skip("Failed to create a 3D device, skipping test.\n");
DestroyWindow(window); DestroyWindow(window);
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment