Fix test for Windows in the new wxExecute() unit test.

TestOverlappedSyncExecute() doesn't currently pass under Windows and was
supposed to not be executed there but was, in console test, as __WXMSW__ is
not defined in this case, only __WINDOWS__ is (as there is no GUI toolkit in
the console applications).

See #10258.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-07-06 00:27:50 +00:00
parent a352fbb044
commit 431b8364e6

View File

@@ -436,7 +436,7 @@ void ExecTestCase::TestOverlappedSyncExecute()
// //
// Too bad you can't just register one test case of a test suite as a // Too bad you can't just register one test case of a test suite as a
// "fixme". // "fixme".
#ifndef __WXMSW__ #ifndef __WINDOWS__
// Simple helper delaying the call to wxExecute(): instead of running it // Simple helper delaying the call to wxExecute(): instead of running it
// immediately, it runs it when we re-enter the event loop. // immediately, it runs it when we re-enter the event loop.
class DelayedExecuteTimer : public wxTimer class DelayedExecuteTimer : public wxTimer
@@ -495,5 +495,5 @@ void ExecTestCase::TestOverlappedSyncExecute()
CPPUNIT_ASSERT( !longSleepOutput.empty() ); CPPUNIT_ASSERT( !longSleepOutput.empty() );
CPPUNIT_ASSERT_EQUAL( SLEEP_END_STRING, longSleepOutput.Last() ); CPPUNIT_ASSERT_EQUAL( SLEEP_END_STRING, longSleepOutput.Last() );
#endif // !__WXMSW__ #endif // !__WINDOWS__
} }