Vitaliy Margolen : user32: Silence tests in default debug level.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Dec 27 10:37:34 CST 2006


Module: wine
Branch: master
Commit: 1871473bb2a57ffd904f4d3ca67843a7de91821d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1871473bb2a57ffd904f4d3ca67843a7de91821d

Author: Vitaliy Margolen <wine-patches at kievinfo.com>
Date:   Tue Dec 26 10:05:57 2006 -0700

user32: Silence tests in default debug level.

---

 dlls/user32/tests/input.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c
index bfd8c10..a09f001 100644
--- a/dlls/user32/tests/input.c
+++ b/dlls/user32/tests/input.c
@@ -237,11 +237,13 @@ static void do_test( HWND hwnd, int seqn
     assert( evtctr <= MAXKEYEVENTS );
     assert( evtctr == ptr_SendInput(evtctr, &inputs[0], sizeof(INPUT)));
     i = 0;
-    trace("======== key stroke sequence #%d: %s =============\n",
+    if (winetest_debug > 1)
+        trace("======== key stroke sequence #%d: %s =============\n",
             seqnr + 1, buf);
     while( PeekMessage(&msg,hwnd,WM_KEYFIRST,WM_KEYLAST,PM_REMOVE) ) {
-        trace("message[%d] %-15s wParam %04x lParam %08lx time %x\n", i,
-                MSGNAME[msg.message - WM_KEYFIRST], msg.wParam, msg.lParam, msg.time);
+        if (winetest_debug > 1)
+            trace("message[%d] %-15s wParam %04x lParam %08lx time %x\n", i,
+                  MSGNAME[msg.message - WM_KEYFIRST], msg.wParam, msg.lParam, msg.time);
         if( i < kmctr ) {
             ok( msg.message == expmsg[i].message &&
                     msg.wParam == expmsg[i].wParam &&
@@ -253,7 +255,8 @@ static void do_test( HWND hwnd, int seqn
         }
         i++;
     }
-    trace("%d messages retrieved\n", i);
+    if (winetest_debug > 1)
+        trace("%d messages retrieved\n", i);
     ok( i == kmctr, "message count is wrong: got %d expected: %d\n", i, kmctr);
 }
 




More information about the wine-cvs mailing list