Erich E. Hoover : user32/tests: Fix an inconsistent test case in clearing the clipboard.
Module: wine Branch: master Commit: f9b878101e1c44588cea32f74ca74c0ad2c4b75c URL: http://source.winehq.org/git/wine.git/?a=commit;h=f9b878101e1c44588cea32f74c... Author: Erich E. Hoover <erich.e.hoover(a)wine-staging.com> Date: Sat Nov 12 16:26:45 2016 -0700 user32/tests: Fix an inconsistent test case in clearing the clipboard. Depending on our clipboard polling we can get an additional clipboard update during the clipboard clear test. This change forces a consistent state when starting the test, which stops the additional window message from possibly occurring. Signed-off-by: Erich E. Hoover <erich.e.hoover(a)wine-staging.com> Signed-off-by: Vincent Povirk <vincent(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/user32/tests/msg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index b132dfe..45b5222 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -14054,6 +14054,7 @@ static void test_clipboard_viewers(void) trace("clipbd viewers: hWnd1=%p, hWnd2=%p, hWnd3=%p\n", hWnd1, hWnd2, hWnd3); assert(hWnd1 && hWnd2 && hWnd3); + CountClipboardFormats(); /* Ensure that we do not have an X11 update to the clipboard */ flush_sequence(); /* Test getting the clipboard viewer and setting the viewer to NULL. */
participants (1)
-
Alexandre Julliard