Boost logo

Boost-Commit :

From: gennadiy.rozental_at_[hidden]
Date: 2007-10-14 15:28:46


Author: rogeeff
Date: 2007-10-14 15:28:46 EDT (Sun, 14 Oct 2007)
New Revision: 40031
URL: http://svn.boost.org/trac/boost/changeset/40031

Log:
Test module initialization error message is redirected into result reporter stream
Text files modified:
   trunk/boost/test/impl/unit_test_main.ipp | 14 +++++++-------
   1 files changed, 7 insertions(+), 7 deletions(-)

Modified: trunk/boost/test/impl/unit_test_main.ipp
==============================================================================
--- trunk/boost/test/impl/unit_test_main.ipp (original)
+++ trunk/boost/test/impl/unit_test_main.ipp 2007-10-14 15:28:46 EDT (Sun, 14 Oct 2007)
@@ -34,14 +34,14 @@
 
 //____________________________________________________________________________//
 
-// ************************************************************************** //
-// ************** unit_test_main ************** //
-// ************************************************************************** //
-
 namespace boost {
 
 namespace unit_test {
 
+// ************************************************************************** //
+// ************** unit_test_main ************** //
+// ************************************************************************** //
+
 int BOOST_TEST_DECL
 
 #if defined(BOOST_TEST_DYN_LINK)
@@ -67,17 +67,17 @@
                     : results_collector.results( framework::master_test_suite().p_id ).result_code();
     }
     catch( framework::internal_error const& ex ) {
- std::cerr << "Boost.Test framework internal error: " << ex.what() << std::endl;
+ results_reporter::get_stream() << "Boost.Test framework internal error: " << ex.what() << std::endl;
         
         return boost::exit_exception_failure;
     }
     catch( framework::setup_error const& ex ) {
- std::cerr << "Test setup error: " << ex.what() << std::endl;
+ results_reporter::get_stream() << "Test setup error: " << ex.what() << std::endl;
         
         return boost::exit_exception_failure;
     }
     catch( ... ) {
- std::cerr << "Boost.Test framework internal error: unknown reason" << std::endl;
+ results_reporter::get_stream() << "Boost.Test framework internal error: unknown reason" << std::endl;
         
         return boost::exit_exception_failure;
     }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk