user32/tests: Flush events after test_ShowWindow().
commit0741d193ffef9e05668dd4a3eedcf55f063b7c5f
authorZebediah Figura <z.figura12@gmail.com>
Fri, 2 Feb 2018 00:36:54 +0000 (1 18:36 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 2 Feb 2018 13:42:38 +0000 (2 14:42 +0100)
tree7de64fd5aeb528b9fb6e63531531f5acaf868f9e
parent3b3c25e17d9bc04adec7a7db5800a4532f42bc3d
user32/tests: Flush events after test_ShowWindow().

The test minimizes windows, which triggers most window managers to generate
focus events on other windows. These events aren't processed until halfway
through the next test, test_EnableWindow(), when a message loop is run, and
as a result an unexpected window (usually hwndMain) is activated, causing the
test to fail.

The testbot uses focus-follows-mouse mode, so these focus events were not
triggered, thereby causing a success inside the todo block.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/user32/tests/win.c