ddraw/tests: Try to make test_coop_level_mode_set() more reliable.
commit1af267f613a365be418778f273afb88624bbfe0e
authorHenri Verbeet <hverbeet@codeweavers.com>
Mon, 14 Apr 2014 07:59:29 +0000 (14 09:59 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 14 Apr 2014 18:19:01 +0000 (14 20:19 +0200)
tree01ed3905ace32abbda6b3b0d48999cab52aa2b4e
parent54029915d5cb2aa7374d5dd73a4dcc9b7bae34bf
ddraw/tests: Try to make test_coop_level_mode_set() more reliable.

It appears that particularly on slower setups, on occasion we don't receive
WM_DISPLAYCHANGE messages after a mode change. The theory is that the
SendMessageTimeoutW() call in X11DRV_resize_desktop() ends up hitting the
is_queue_hung() check in the send_message handler in the server, and the
PeekMessage() calls should avoid that.
dlls/ddraw/tests/ddraw1.c
dlls/ddraw/tests/ddraw2.c
dlls/ddraw/tests/ddraw4.c
dlls/ddraw/tests/ddraw7.c