[PATCH 2/4] d3d9/tests: Check ColorFill() return codes in color_fill_test() (LLVM/Clang).
Henri Verbeet
hverbeet at codeweavers.com
Mon Jan 31 12:19:23 CST 2011
---
dlls/d3d9/tests/visual.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c
index d01252d..d73e6033 100644
--- a/dlls/d3d9/tests/visual.c
+++ b/dlls/d3d9/tests/visual.c
@@ -654,6 +654,7 @@ static void color_fill_test(IDirect3DDevice9 *device)
{
fill_color = 0x112233;
hr = IDirect3DDevice9_ColorFill(device, backbuffer, NULL, fill_color);
+ ok(SUCCEEDED(hr), "Color fill failed, hr %#x.\n", hr);
color = getPixelColor(device, 0, 0);
ok(color == fill_color, "Expected color %08x, got %08x\n", fill_color, color);
@@ -668,6 +669,7 @@ static void color_fill_test(IDirect3DDevice9 *device)
{
fill_color = 0x445566;
hr = IDirect3DDevice9_ColorFill(device, rt_surface, NULL, fill_color);
+ ok(SUCCEEDED(hr), "Color fill failed, hr %#x.\n", hr);
color = getPixelColorFromSurface(rt_surface, 0, 0);
ok(color == fill_color, "Expected color %08x, got %08x\n", fill_color, color);
@@ -683,6 +685,7 @@ static void color_fill_test(IDirect3DDevice9 *device)
{
fill_color = 0x778899;
hr = IDirect3DDevice9_ColorFill(device, offscreen_surface, NULL, fill_color);
+ ok(SUCCEEDED(hr), "Color fill failed, hr %#x.\n", hr);
color = getPixelColorFromSurface(offscreen_surface, 0, 0);
ok(color == fill_color, "Expected color %08x, got %08x\n", fill_color, color);
--
1.7.3.4
More information about the wine-patches
mailing list