Commit a8c56b19 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

user32/tests: Do not stop checking the message list when skipping an optional or…

user32/tests: Do not stop checking the message list when skipping an optional or unsupported message. This was either added by accident, or in an attempt to stop checking the message list once we hit a winevent hook todo [and accidentally given too wide of a scope]. However, the same commit also uses a global counter to ensure that only one winevent todo is printed, so we don't need to break in the first hunk anyway. For trailing winevent todos, there is no global counter, so instead move the goto inside the if block. Fixes: a72bffe7 The test marked todo here was broken by 33617af8, which was hidden due to the above commit.
parent 9b6f65cc
......@@ -2853,7 +2853,6 @@ static void ok_sequence_(const struct message *expected_list, const char *contex
}
}
expected++;
goto done;
}
else if (todo)
{
......@@ -2888,9 +2887,9 @@ static void ok_sequence_(const struct message *expected_list, const char *contex
ok_( file, line) (FALSE, "%s: %u: the msg sequence is not complete: expected 0x%04x - actual 0x%04x\n",
context, count, expected->message, actual->message);
}
goto done;
}
expected++;
goto done;
}
if (todo)
......@@ -5794,7 +5793,7 @@ static void test_messages(void)
test_WM_SETREDRAW(hchild);
ShowWindow(hchild, SW_SHOW);
ok_sequence(WmShowChildSeq, "ShowWindow(SW_SHOW):child", FALSE);
ok_sequence(WmShowChildSeq, "ShowWindow(SW_SHOW):child", TRUE);
/* check parent messages too */
log_all_parent_messages++;
......
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