Matteo Bruni : d3dcompiler/tests: Trace the test index in test_fail() checks.

Alexandre Julliard julliard at winehq.org
Fri Aug 9 14:49:32 CDT 2019


Module: wine
Branch: master
Commit: 5e8ded1646579a597c029531f2612930b17c7627
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5e8ded1646579a597c029531f2612930b17c7627

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Fri Aug  9 20:09:44 2019 +0200

d3dcompiler/tests: Trace the test index in test_fail() checks.

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3dcompiler_43/tests/hlsl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/d3dcompiler_43/tests/hlsl.c b/dlls/d3dcompiler_43/tests/hlsl.c
index 84f3ba5..f169f68 100644
--- a/dlls/d3dcompiler_43/tests/hlsl.c
+++ b/dlls/d3dcompiler_43/tests/hlsl.c
@@ -616,9 +616,9 @@ static void test_fail(IDirect3DDevice9 *device, IDirect3DVertexBuffer9 *qquad_ge
     {
         compiled = errors = NULL;
         hr = ppD3DCompile(tests[i], strlen(tests[i]), NULL, NULL, NULL, "test", "ps_2_0", 0, 0, &compiled, &errors);
-        ok(hr == E_FAIL, "Got unexpected hr %#x.\n", hr);
-        ok(!!errors, "Expected non-NULL error blob.\n");
-        ok(!compiled, "Expected no compiled shader blob.\n");
+        ok(hr == E_FAIL, "Test %u, got unexpected hr %#x.\n", i, hr);
+        ok(!!errors, "Test %u, expected non-NULL error blob.\n", i);
+        ok(!compiled, "Test %u, expected no compiled shader blob.\n", i);
         ID3D10Blob_Release(errors);
     }
 }




More information about the wine-cvs mailing list