Commit f9b87810 authored by Erich E. Hoover's avatar Erich E. Hoover Committed by Alexandre Julliard

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: 's avatarErich E. Hoover <erich.e.hoover@wine-staging.com> Signed-off-by: 's avatarVincent Povirk <vincent@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 59c4d858
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment