]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix test for Windows in the new wxExecute() unit test.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Jul 2013 00:27:50 +0000 (00:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Jul 2013 00:27:50 +0000 (00:27 +0000)
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

tests/exec/exec.cpp

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