From: Gabriel Ivăncescu Subject: Re: [PATCH v3 5/5] shell32/tests: Test hijacking the edit control's procedure after AutoComplete Message-Id: Date: Mon, 24 Sep 2018 16:44:04 +0300 In-Reply-To: <87lg7rayst.fsf@winehq.org> References: <7adaed22794d62643fff8621a066a91765eff4b0.1537627456.git.gabrielopcode@gmail.com> <87lg7rayst.fsf@winehq.org> On Mon, Sep 24, 2018 at 3:02 PM, Alexandre Julliard wrote: > > Why do you need all these Sleeps and dispatch calls? As far as I can > see, everything you are testing should be synchronous. > > -- > Alexandre Julliard > julliard@winehq.org Well, at first I also wanted to remove them (they were there before, but only one test existed). It looks like they are actually needed on Windows, though, otherwise the tests fail. I think Windows uses a separate thread to do the autocomplete and some other weird stuff like that. It's not the SendMessage that's the problem, but I think the edit control doesn't receive the autocompleted stuff immediately on Windows.