Commit a99c1ee7 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

comctl32/tests: Print id value as decimal.

All the notification codes (printed as an id) have negative base value (SBN_, UDN_, HDN_, BCN_, TBN_, TTN_, RBN_, TRBN_, PGN_, TVN_, LVN_, TCN_, CBEN_, IPN_, MCN_, DTN_), and printing them as decimal helps to quickly identify the corresponding notification value in cases when an id in the message sequence doesn't match. Custom ids in the message sequences have small numbers (0, 1, 2, ...), so they also get printed correctly. Signed-off-by: 's avatarDmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: 's avatarNikolay Sivov <nsivov@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent bf42dca3
...@@ -261,14 +261,14 @@ static void ok_sequence_(struct msg_sequence **seq, int sequence_index, ...@@ -261,14 +261,14 @@ static void ok_sequence_(struct msg_sequence **seq, int sequence_index,
failcount++; failcount++;
dump++; dump++;
ok_(file, line) (FALSE, ok_(file, line) (FALSE,
"%s: in msg 0x%04x expecting id 0x%x got 0x%x\n", "%s: in msg 0x%04x expecting id %d got %d\n",
context, expected->message, expected->id, actual->id); context, expected->message, expected->id, actual->id);
} }
} }
else else
{ {
ok_(file, line) (expected->id == actual->id, ok_(file, line) (expected->id == actual->id,
"%s: in msg 0x%04x expecting id 0x%x got 0x%x\n", "%s: in msg 0x%04x expecting id %d got %d\n",
context, expected->message, expected->id, actual->id); context, expected->message, expected->id, actual->id);
if (expected->id != actual->id) dump++; if (expected->id != actual->id) dump++;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment