Matteo Bruni : d3d10/tests: Improve compare_matrix() ok() messages.

Alexandre Julliard julliard at winehq.org
Fri Mar 27 16:14:40 CDT 2020


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

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Fri Mar 27 21:05:10 2020 +0100

d3d10/tests: Improve compare_matrix() ok() messages.

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

---

 dlls/d3d10/tests/effect.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/d3d10/tests/effect.c b/dlls/d3d10/tests/effect.c
index 7b9bcfb50d..02b91735f1 100644
--- a/dlls/d3d10/tests/effect.c
+++ b/dlls/d3d10/tests/effect.c
@@ -5168,7 +5168,8 @@ static void compare_matrix(const char *name, unsigned int line, struct d3d10_mat
         for (col = 0; col < col_count; ++col)
         {
             tmp = !transpose ? b->m[row][col] : b->m[col][row];
-            ok(a->m[row][col] == tmp, "Variable %s, line %d, got unexpected value 0x%08x.\n", name, line,
+            ok_(__FILE__, line)(a->m[row][col] == tmp,
+                    "Variable %s (%u, %u), got unexpected value 0x%08x.\n", name, row, col,
                     *(unsigned int *)&tmp);
         }
     }




More information about the wine-cvs mailing list