From f9b878101e1c44588cea32f74ca74c0ad2c4b75c Mon Sep 17 00:00:00 2001 From: "Erich E. Hoover" Date: Sat, 12 Nov 2016 16:26:45 -0700 Subject: [PATCH] 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 Signed-off-by: Vincent Povirk Signed-off-by: Alexandre Julliard --- 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 b132dfe9288..45b5222deba 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. */