msctf/tests: handle an occassional unexpected SetFocus from wine

View: New views
2 Messages — Rating Filter:   Alert me  

msctf/tests: handle an occassional unexpected SetFocus from wine

by Aric Stewart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

---
  dlls/msctf/tests/inputprocessor.c |    5 ++++-
  1 files changed, 4 insertions(+), 1 deletions(-)



diff --git a/dlls/msctf/tests/inputprocessor.c b/dlls/msctf/tests/inputprocessor.c
index edf5cc0..a679a71 100644
--- a/dlls/msctf/tests/inputprocessor.c
+++ b/dlls/msctf/tests/inputprocessor.c
@@ -2000,8 +2000,11 @@ static void test_AssociateFocus(void)
     test_OnSetFocus  = SINK_EXPECTED;
     ShowWindow(wnd2,SW_SHOWNORMAL);
     SetFocus(wnd2);
-    processPendingMessages();
     sink_check_ok(&test_OnSetFocus,"OnSetFocus");
+    test_CurrentFocus = FOCUS_IGNORE; /* occasional wine race */
+    test_PrevFocus = FOCUS_IGNORE; /* occasional wine race */
+    test_OnSetFocus = SINK_IGNORE; /* occasional wine race */
+    processPendingMessages();
 
     ShowWindow(wnd3,SW_SHOWNORMAL);
     SetFocus(wnd3);




Re: msctf/tests: handle an occassional unexpected SetFocus from wine

by Aric Stewart :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Please disregard this.  I was testing the wrong version on my winvista
machine and this causes a failure.

revised version coming.
-aric

Aric Stewart wrote:
> ---
>  dlls/msctf/tests/inputprocessor.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
>
>
>
> ------------------------------------------------------------------------
>
>