From 4ad923920924a872c0a4e2896261762d0f38b577 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Wed, 25 Feb 2015 17:31:53 +0000 Subject: [PATCH] [USER32_WINETEST] - Apply hacks to make the tests succeed on Windows svn path=/trunk/; revision=66456 --- rostests/winetests/user32/msg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rostests/winetests/user32/msg.c b/rostests/winetests/user32/msg.c index 7b99851f0dd..520d171f7f8 100755 --- a/rostests/winetests/user32/msg.c +++ b/rostests/winetests/user32/msg.c @@ -14717,9 +14717,12 @@ START_TEST(msg_messages) START_TEST(msg_focus) { init_tests(); - test_SetFocus(); test_SetActiveWindow(); + test_SetFocus(); + /* HACK: For some reason test_SetForegroundWindow fails on Windows unless + * we do this */ + keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0); /* keep it the last test, under Windows it tends to break the tests * which rely on active/foreground windows being correct. */