X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33f7fa342f92eb747954e60ae1003c419e0761ed..6a219e34a02be0c6bd3a11cfeed8343db39ee8f6:/tests/test.cpp diff --git a/tests/test.cpp b/tests/test.cpp index ca957f81d2..983bc4f3ce 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #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()