]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/test.cpp
Support for undoable application of custom properties, and customisation of propertie...
[wxWidgets.git] / tests / test.cpp
index ca957f81d2caca4226541980e20d9f02b4644479..983bc4f3ce2eb2326046d95a315ef40c9417f377 100644 (file)
@@ -34,6 +34,7 @@
 #include <cppunit/Test.h>
 #include <cppunit/TestResult.h>
 #include <cppunit/TestFailure.h>
+#include <cppunit/TestResultCollector.h>
 
 #ifdef __VISUALC__
     #pragma warning(default:4100)
@@ -617,7 +618,9 @@ int TestApp::OnRun()
     runner.eventManager().pushProtector(new wxUnitTestProtector);
 
     bool printProgress = !(verbose || m_detail || m_timing);
-    return runner.run("", false, true, printProgress) ? EXIT_SUCCESS : EXIT_FAILURE;
+    runner.run("", false, true, printProgress);
+
+    return runner.result().testFailures() == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
 }
 
 int TestApp::OnExit()