[PATCH] d3dcompiler/tests: Fix some d3dcompiler_47 test failures on Windows 8.

Sven Baars sven.wine at gmail.com
Thu Nov 14 03:56:07 CST 2019


Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
 dlls/d3dcompiler_43/tests/reflection.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/d3dcompiler_43/tests/reflection.c b/dlls/d3dcompiler_43/tests/reflection.c
index fb117fd6a9..2dcee6d945 100644
--- a/dlls/d3dcompiler_43/tests/reflection.c
+++ b/dlls/d3dcompiler_43/tests/reflection.c
@@ -106,10 +106,12 @@ static void test_reflection_references(void)
     expected = E_NOINTERFACE;
 #endif
     hr = pD3DReflect(test_reflection_blob, test_reflection_blob[6], &IID_ID3D10ShaderReflection, (void **)&ref10);
-    ok(hr == expected, "D3DReflect failed, got %x, expected %x\n", hr, expected);
+    ok(hr == expected || broken(hr == E_NOINTERFACE) /* Windows 8 */,
+       "D3DReflect failed, got %x, expected %x\n", hr, expected);
 
     hr = pD3DReflect(test_reflection_blob, test_reflection_blob[6], &IID_ID3D10ShaderReflection1, (void **)&ref10_1);
-    ok(hr == expected, "D3DReflect failed, got %x, expected %x\n", hr, expected);
+    ok(hr == expected || broken(hr == E_NOINTERFACE) /* Windows 8 */,
+       "D3DReflect failed, got %x, expected %x\n", hr, expected);
 
     hr = pD3DReflect(NULL, test_reflection_blob[6], &IID_ID3D10ShaderReflection1, (void **)&ref10_1);
     ok(hr == D3DERR_INVALIDCALL, "D3DReflect failed, got %x, expected %x\n", hr, D3DERR_INVALIDCALL);
-- 
2.17.1




More information about the wine-devel mailing list