Rémi Bernon : ntoskrnl.exe/tests: Fix inverted winetest_win_skip condition.

Alexandre Julliard julliard at winehq.org
Mon Sep 13 16:12:33 CDT 2021


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

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Mon Sep 13 10:48:59 2021 +0200

ntoskrnl.exe/tests: Fix inverted winetest_win_skip condition.

And change skipped test message. It's not really useful and it will fail
the tests if the main test summary doesn't match the number of skipped
messages.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntoskrnl.exe/tests/utils.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ntoskrnl.exe/tests/utils.h b/dlls/ntoskrnl.exe/tests/utils.h
index f73f6f938ca..98fe3f97864 100644
--- a/dlls/ntoskrnl.exe/tests/utils.h
+++ b/dlls/ntoskrnl.exe/tests/utils.h
@@ -306,7 +306,7 @@ static inline void winetest_vskip( const char *msg, __ms_va_list args )
 {
     if (winetest_add_line() < winetest_mute_threshold)
     {
-        winetest_print_context( "Tests skipped: " );
+        winetest_print_context( "Driver tests skipped: " );
         kvprintf(msg, args);
         InterlockedIncrement(&skipped);
     }
@@ -328,7 +328,7 @@ static inline void WINAPIV winetest_win_skip( const char *msg, ... )
 {
     __ms_va_list args;
     __ms_va_start(args, msg);
-    if (running_under_wine)
+    if (!running_under_wine)
         winetest_vskip(msg, args);
     else
         winetest_vok(0, msg, args);




More information about the wine-cvs mailing list