Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75153 - trunk/libs/chrono/test/io
From: vicente.botet_at_[hidden]
Date: 2011-10-28 10:45:46


Author: viboes
Date: 2011-10-28 10:45:44 EDT (Fri, 28 Oct 2011)
New Revision: 75153
URL: http://svn.boost.org/trac/boost/changeset/75153

Log:
Chrono: Add return boost::report_errors();
Text files modified:
   trunk/libs/chrono/test/io/duration_input.cpp | 2 ++
   trunk/libs/chrono/test/io/duration_output.cpp | 2 ++
   trunk/libs/chrono/test/io/time_point_input.cpp | 17 ++++++++++-------
   trunk/libs/chrono/test/io/time_point_output.cpp | 17 ++++++++++-------
   4 files changed, 24 insertions(+), 14 deletions(-)

Modified: trunk/libs/chrono/test/io/duration_input.cpp
==============================================================================
--- trunk/libs/chrono/test/io/duration_input.cpp (original)
+++ trunk/libs/chrono/test/io/duration_input.cpp 2011-10-28 10:45:44 EDT (Fri, 28 Oct 2011)
@@ -64,5 +64,7 @@
   test_good("4000 ms", seconds(4));
   test_fail("3001 ms", seconds(3), milliseconds(3001));
 
+ return boost::report_errors();
+
 }
 

Modified: trunk/libs/chrono/test/io/duration_output.cpp
==============================================================================
--- trunk/libs/chrono/test/io/duration_output.cpp (original)
+++ trunk/libs/chrono/test/io/duration_output.cpp 2011-10-28 10:45:44 EDT (Fri, 28 Oct 2011)
@@ -85,5 +85,7 @@
 
   test_state_saver("5000 h", "5000 h 5000 hours", hours(5000), duration_style::symbol);
 
+ return boost::report_errors();
+
 }
 

Modified: trunk/libs/chrono/test/io/time_point_input.cpp
==============================================================================
--- trunk/libs/chrono/test/io/time_point_input.cpp (original)
+++ trunk/libs/chrono/test/io/time_point_input.cpp 2011-10-28 10:45:44 EDT (Fri, 28 Oct 2011)
@@ -85,29 +85,32 @@
 
 int main()
 {
- std::cout << "high_resolution_clock=";
+ std::cout << "high_resolution_clock=" << std::endl;
   check_all<boost::chrono::high_resolution_clock>();
 #ifdef BOOST_CHRONO_HAS_CLOCK_STEADY
- std::cout << "steady_clock=";
+ std::cout << "steady_clock="<< std::endl;
   check_all<boost::chrono::steady_clock>();
 #endif
   //std::cout << "system_clock=";
   //check_all<boost::chrono::system_clock>();
 
 #if defined(BOOST_CHRONO_HAS_THREAD_CLOCK)
- std::cout << "thread_clock=";
+ std::cout << "thread_clock="<< std::endl;
   check_all<boost::chrono::thread_clock>();
 #endif
 
 #if defined(BOOST_CHRONO_HAS_PROCESS_CLOCKS)
- std::cout << "process_real_cpu_clock=";
+ std::cout << "process_real_cpu_clock="<< std::endl;
   check_all<boost::chrono::process_real_cpu_clock>();
- std::cout << "process_user_cpu_clock=";
+ std::cout << "process_user_cpu_clock="<< std::endl;
   check_all<boost::chrono::process_user_cpu_clock>();
- std::cout << "process_system_cpu_clock=";
+ std::cout << "process_system_cpu_clock="<< std::endl;
   check_all<boost::chrono::process_system_cpu_clock>();
- std::cout << "process_cpu_clock=";
+ std::cout << "process_cpu_clock="<< std::endl;
   check_all<boost::chrono::process_cpu_clock>();
 #endif
+
+ return boost::report_errors();
+
 }
 

Modified: trunk/libs/chrono/test/io/time_point_output.cpp
==============================================================================
--- trunk/libs/chrono/test/io/time_point_output.cpp (original)
+++ trunk/libs/chrono/test/io/time_point_output.cpp 2011-10-28 10:45:44 EDT (Fri, 28 Oct 2011)
@@ -77,29 +77,32 @@
 int main()
 {
 
- std::cout << "high_resolution_clock=";
+ std::cout << "high_resolution_clock="<< std::endl;
   check_all<boost::chrono::high_resolution_clock>();
 #ifdef BOOST_CHRONO_HAS_CLOCK_STEADY
- std::cout << "steady_clock=";
+ std::cout << "steady_clock="<< std::endl;
   check_all<boost::chrono::steady_clock>();
 #endif
   //std::cout << "system_clock=";
   //check_all<boost::chrono::system_clock>();
 
 #if defined(BOOST_CHRONO_HAS_THREAD_CLOCK)
- std::cout << "thread_clock=";
+ std::cout << "thread_clock="<< std::endl;
   check_all<boost::chrono::thread_clock>();
 #endif
 
 #if defined(BOOST_CHRONO_HAS_PROCESS_CLOCKS)
- std::cout << "process_real_cpu_clock=";
+ std::cout << "process_real_cpu_clock="<< std::endl;
   check_all<boost::chrono::process_real_cpu_clock>();
- std::cout << "process_user_cpu_clock=";
+ std::cout << "process_user_cpu_clock="<< std::endl;
   check_all<boost::chrono::process_user_cpu_clock>();
- std::cout << "process_system_cpu_clock=";
+ std::cout << "process_system_cpu_clock="<< std::endl;
   check_all<boost::chrono::process_system_cpu_clock>();
- std::cout << "process_cpu_clock=";
+ std::cout << "process_cpu_clock="<< std::endl;
   check_all<boost::chrono::process_cpu_clock>();
 #endif
+
+ return boost::report_errors();
+
 }
 


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