[PATCH] kernel32/tests: Use ok_() so the TestBot can correctly detect the line.

Francois Gouget fgouget at free.fr
Thu May 9 04:05:57 CDT 2019


Otherwise the messages appear to change every time the line count
changes, which making old errors new again.

Signed-off-by: Francois Gouget <fgouget at free.fr>
---
 dlls/kernel32/tests/loader.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/kernel32/tests/loader.c b/dlls/kernel32/tests/loader.c
index b8dc72bc7f3..bc6f4ab59bf 100644
--- a/dlls/kernel32/tests/loader.c
+++ b/dlls/kernel32/tests/loader.c
@@ -627,13 +627,13 @@ static NTSTATUS map_image_section( const IMAGE_NT_HEADERS *nt_header, const IMAG
         {
             if (!has_code && is_win64)
             {
-                ok( mod != NULL || want_32bit || broken(il_only), /* <= win7 */
-                    "%u: loading failed err %u\n", line, GetLastError() );
+                ok_(__FILE__,line)( mod != NULL || want_32bit || broken(il_only), /* <= win7 */
+                    "loading failed err %u\n", GetLastError() );
             }
             else
             {
-                ok( !mod, "%u: loading succeeded\n", line );
-                ok( GetLastError() == ERROR_BAD_EXE_FORMAT, "%u: wrong error %u\n", line, GetLastError() );
+                ok_(__FILE__, line)( !mod, "loading succeeded\n" );
+                ok_(__FILE__, line)( GetLastError() == ERROR_BAD_EXE_FORMAT, "wrong error %u\n", GetLastError() );
             }
         }
         else
-- 
2.20.1



More information about the wine-devel mailing list