=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: user32/tests: Allow tracing in menu tests.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Oct 2 09:21:49 CDT 2015
Module: wine
Branch: master
Commit: 83bfda7cafae11d7b0de7fce253acc7f75c89ec0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=83bfda7cafae11d7b0de7fce253acc7f75c89ec0
Author: André Hentschel <nerv at dawncrow.de>
Date: Thu Sep 24 20:10:21 2015 +0200
user32/tests: Allow tracing in menu tests.
Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
dlls/user32/tests/menu.c | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/dlls/user32/tests/menu.c b/dlls/user32/tests/menu.c
index 62c3229..65caaa4 100644
--- a/dlls/user32/tests/menu.c
+++ b/dlls/user32/tests/menu.c
@@ -2508,9 +2508,10 @@ static void check_menu_items(HMENU hmenu, UINT checked_cmd, UINT checked_type,
mii.fMask = MIIM_FTYPE | MIIM_STATE | MIIM_ID | MIIM_SUBMENU;
ret = GetMenuItemInfoA(hmenu, i, TRUE, &mii);
ok(ret, "GetMenuItemInfo(%u) failed\n", i);
-if (0)
- trace("item #%u: fType %04x, fState %04x, wID %u, hSubMenu %p\n",
- i, mii.fType, mii.fState, mii.wID, mii.hSubMenu);
+
+ if (winetest_debug > 1)
+ trace("item #%u: fType %04x, fState %04x, wID %u, hSubMenu %p\n",
+ i, mii.fType, mii.fState, mii.wID, mii.hSubMenu);
if (mii.hSubMenu)
{
@@ -2672,9 +2673,9 @@ static void test_menu_resource_layout(void)
mii.fMask = MIIM_FTYPE | MIIM_STATE | MIIM_ID | MIIM_STRING;
ret = GetMenuItemInfoA(hmenu, i, TRUE, &mii);
ok(ret, "GetMenuItemInfo(%u) failed\n", i);
-if (0)
- trace("item #%u: fType %04x, fState %04x, wID %u, dwTypeData %s\n",
- i, mii.fType, mii.fState, mii.wID, (LPCSTR)mii.dwTypeData);
+ if (winetest_debug > 1)
+ trace("item #%u: fType %04x, fState %04x, wID %u, dwTypeData %s\n",
+ i, mii.fType, mii.fState, mii.wID, (LPCSTR)mii.dwTypeData);
ok(mii.fType == menu_data[i].type,
"%u: expected fType %04x, got %04x\n", i, menu_data[i].type, mii.fType);
@@ -2778,9 +2779,10 @@ static void compare_menu_data(HMENU hmenu, const struct menu_data *item, INT ite
mii.fMask = MIIM_FTYPE | MIIM_ID | MIIM_STRING | MIIM_BITMAP;
ret = GetMenuItemInfoA(hmenu, i, TRUE, &mii);
ok(ret, "GetMenuItemInfo(%u) failed\n", i);
-if (0)
- trace("item #%u: fType %04x, fState %04x, wID %04x, hbmp %p\n",
- i, mii.fType, mii.fState, mii.wID, mii.hbmpItem);
+
+ if (winetest_debug > 1)
+ trace("item #%u: fType %04x, fState %04x, wID %04x, hbmp %p\n",
+ i, mii.fType, mii.fState, mii.wID, mii.hbmpItem);
ok(mii.fType == item[i].type,
"%u: expected fType %04x, got %04x\n", i, item[i].type, mii.fType);
More information about the wine-cvs
mailing list