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@wine-staging.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Erich E. Hoover 2016-11-12 16:26:45 -07:00 committed by Alexandre Julliard
parent 59c4d8581d
commit f9b878101e
1 changed files with 1 additions and 0 deletions

View File

@ -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. */