Detlef Riekenberg : d3d8/tests: Mark a failure of GetLightEnable on Win9x as broken().

Alexandre Julliard julliard at winehq.org
Fri Oct 16 11:26:08 CDT 2009


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

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Thu Oct 15 21:14:18 2009 +0200

d3d8/tests: Mark a failure of GetLightEnable on Win9x as broken().

---

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

diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index a869e79..2a6a10e 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -1248,7 +1248,9 @@ static void test_lights(void)
        broken(hr == D3DERR_INVALIDCALL), /* Some Win9x and WinME */
        "Enabling one light more than supported returned %08x\n", hr);
     hr = IDirect3DDevice8_GetLightEnable(device, i + 1, &enabled);
-    ok(hr == D3D_OK, "GetLightEnable on light %u failed with %08x\n", i + 1, hr);
+    ok(hr == D3D_OK ||
+       broken(hr == D3DERR_INVALIDCALL), /* Some Win9x and WinME */
+       "GetLightEnable on light %u failed with %08x\n", i + 1, hr);
     ok(enabled, "Light %d is %s\n", i + 1, enabled ? "enabled" : "disabled");
     hr = IDirect3DDevice8_LightEnable(device, i + 1, FALSE);
     ok(hr == D3D_OK, "Disabling the additional returned %08x\n", hr);




More information about the wine-cvs mailing list