Francois Gouget : kernel32/tests: Use ok_() so the TestBot can correctly detect the line.

Alexandre Julliard julliard at winehq.org
Thu May 9 13:32:44 CDT 2019


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Thu May  9 11:05:57 2019 +0200

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

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>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 b8dc72b..bc6f4ab 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




More information about the wine-cvs mailing list