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:
parent
59c4d8581d
commit
f9b878101e
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue