On Tue, Jun 10, 2008 at 9:36 PM, Dmitry Timoshkov dmitry@codeweavers.com wrote:
"James Hawkins" truiken@gmail.com wrote:
I've debugged this a bit more, and when running the user32:win test within the winetest.exe program, all checked calls to GetForegroundWindow return NULL. When running the user32:win test by itself from the command line, only 7 tests fail the GetForegroundWindow call (compared to 40). This makes me wonder about the behavior of GetForegroundWindow in a child process window, but I'm not really sure where to go from here.
I'd suggest to make winetest minimize itself before running the tests.
I added the minimize call to winetest, but the win failures are still happening. Now I'm wondering if it has to do with the fact that explorer either gets restarted, or disappears or something right before the win tests and if that affects the win tests. You can see it happening during the tests. The desktop and taskbar disappear about the same time the win tests are run. That's just a guess though.