James Hawkins : d3d9: Fix a test that fails with broken drivers.

Alexandre Julliard julliard at winehq.org
Wed Jul 2 06:03:38 CDT 2008


Module: wine
Branch: master
Commit: 74bb01f4a9c1fb9c249d02ea4359fece4cc5ab65
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=74bb01f4a9c1fb9c249d02ea4359fece4cc5ab65

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Tue Jul  1 23:23:18 2008 -0500

d3d9: Fix a test that fails with broken drivers.

---

 dlls/d3d9/tests/device.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c
index fe72e9f..02eaf05 100644
--- a/dlls/d3d9/tests/device.c
+++ b/dlls/d3d9/tests/device.c
@@ -2014,7 +2014,9 @@ static void test_display_formats()
             hr = IDirect3D9_CheckDeviceType(d3d9, Adapter, DeviceType, x8r8g8b8_format_list[i].DisplayFormat, x8r8g8b8_format_list[i].BackBufferFormat, FALSE);
 
             if(x8r8g8b8_format_list[i].shouldPass)
-                ok(hr == D3D_OK, "format %d %d didn't pass with hr=%#08x\n", x8r8g8b8_format_list[i].DisplayFormat, x8r8g8b8_format_list[i].BackBufferFormat, hr);
+                ok(hr == D3D_OK ||
+                   broken(hr == D3DERR_NOTAVAILABLE),
+                   "format %d %d didn't pass with hr=%#08x\n", x8r8g8b8_format_list[i].DisplayFormat, x8r8g8b8_format_list[i].BackBufferFormat, hr);
             else
                 ok(hr != D3D_OK, "format %d %d didn't pass while it was expected to\n", x8r8g8b8_format_list[i].DisplayFormat, x8r8g8b8_format_list[i].BackBufferFormat);
         }




More information about the wine-cvs mailing list