diff --git a/modules/beast_core/diagnostic/beast_UnitTest.cpp b/modules/beast_core/diagnostic/beast_UnitTest.cpp index e889ea0a25..b988595746 100644 --- a/modules/beast_core/diagnostic/beast_UnitTest.cpp +++ b/modules/beast_core/diagnostic/beast_UnitTest.cpp @@ -78,6 +78,7 @@ ScopedPointer & UnitTest::run (UnitTests* const runner) initialise(); +#if 0 try { runTest(); @@ -86,6 +87,9 @@ ScopedPointer & UnitTest::run (UnitTests* const runner) { failException (); } +#else + runTest (); +#endif shutdown(); @@ -377,8 +381,10 @@ void UnitTests::logReport (StringArray const& report) void UnitTests::runTest (UnitTest& test) { +#if 0 try { +#endif ScopedPointer suite (test.run (this).release ()); m_results->cases += suite->cases.size (); @@ -386,12 +392,14 @@ void UnitTests::runTest (UnitTest& test) m_results->failures += suite->failures; m_results->suites.add (suite.release ()); +#if 0 } catch (...) { // Should never get here. Throw (std::runtime_error ("unhandled exception during unit tests")); } +#endif } //------------------------------------------------------------------------------