$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r66121 - in sandbox/chrono/libs/chrono/test/clock: hires monotonic process system thread
From: vicente.botet_at_[hidden]
Date: 2010-10-20 16:20:40
Author: viboes
Date: 2010-10-20 16:20:38 EDT (Wed, 20 Oct 2010)
New Revision: 66121
URL: http://svn.boost.org/trac/boost/changeset/66121
Log:
Chrono: 
* Added test with throws() explicit as parameter of now
Text files modified: 
   sandbox/chrono/libs/chrono/test/clock/hires/now.pass.cpp     |     1 +                                       
   sandbox/chrono/libs/chrono/test/clock/monotonic/now.pass.cpp |     6 ++++--                                  
   sandbox/chrono/libs/chrono/test/clock/process/now.pass.cpp   |     4 ++++                                    
   sandbox/chrono/libs/chrono/test/clock/system/now.pass.cpp    |     1 +                                       
   sandbox/chrono/libs/chrono/test/clock/thread/now.pass.cpp    |     4 +++-                                    
   5 files changed, 13 insertions(+), 3 deletions(-)
Modified: sandbox/chrono/libs/chrono/test/clock/hires/now.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/hires/now.pass.cpp	(original)
+++ sandbox/chrono/libs/chrono/test/clock/hires/now.pass.cpp	2010-10-20 16:20:38 EDT (Wed, 20 Oct 2010)
@@ -10,5 +10,6 @@
 {
         check_clock_now<boost::chrono::high_resolution_clock>();
         check_clock_now_ec<boost::chrono::high_resolution_clock>();
+	check_clock_now_throws<boost::chrono::high_resolution_clock>();
     return boost::report_errors();
 }
Modified: sandbox/chrono/libs/chrono/test/clock/monotonic/now.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/monotonic/now.pass.cpp	(original)
+++ sandbox/chrono/libs/chrono/test/clock/monotonic/now.pass.cpp	2010-10-20 16:20:38 EDT (Wed, 20 Oct 2010)
@@ -13,8 +13,10 @@
 int main()
 {
 #ifdef BOOST_CHRONO_HAS_CLOCK_MONOTONIC
-	check_clock_now<boost::chrono::high_resolution_clock>();
-	check_clock_now_ec<boost::chrono::high_resolution_clock>();
+	check_clock_now<boost::chrono::monotonic_clock>();
+	check_clock_now_ec<boost::chrono::monotonic_clock>();
+    check_clock_now_throws<boost::chrono::monotonic_clock>();
+	
 #endif
     return boost::report_errors();
 }
Modified: sandbox/chrono/libs/chrono/test/clock/process/now.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/process/now.pass.cpp	(original)
+++ sandbox/chrono/libs/chrono/test/clock/process/now.pass.cpp	2010-10-20 16:20:38 EDT (Wed, 20 Oct 2010)
@@ -11,15 +11,19 @@
 {
         check_clock_now<boost::chrono::process_real_cpu_clock>();
         check_clock_now_ec<boost::chrono::process_real_cpu_clock>();
+    check_clock_now_throws<boost::chrono::process_real_cpu_clock>();
 
         check_clock_now<boost::chrono::process_user_cpu_clock>();
         check_clock_now_ec<boost::chrono::process_user_cpu_clock>();
+    check_clock_now_throws<boost::chrono::process_user_cpu_clock>();
 
         check_clock_now<boost::chrono::process_system_cpu_clock>();
         check_clock_now_ec<boost::chrono::process_system_cpu_clock>();
+    check_clock_now_throws<boost::chrono::process_system_cpu_clock>();
 
         check_clock_now<boost::chrono::process_cpu_clock>();
         check_clock_now_ec<boost::chrono::process_cpu_clock>();
+    check_clock_now_throws<boost::chrono::process_cpu_clock>();
 
     return boost::report_errors();
 }
Modified: sandbox/chrono/libs/chrono/test/clock/system/now.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/system/now.pass.cpp	(original)
+++ sandbox/chrono/libs/chrono/test/clock/system/now.pass.cpp	2010-10-20 16:20:38 EDT (Wed, 20 Oct 2010)
@@ -10,6 +10,7 @@
 {
         check_clock_now<boost::chrono::system_clock>();
         check_clock_now_ec<boost::chrono::system_clock>();
+    check_clock_now_throws<boost::chrono::system_clock>();
 
     return boost::report_errors();
 }
Modified: sandbox/chrono/libs/chrono/test/clock/thread/now.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/clock/thread/now.pass.cpp	(original)
+++ sandbox/chrono/libs/chrono/test/clock/thread/now.pass.cpp	2010-10-20 16:20:38 EDT (Wed, 20 Oct 2010)
@@ -12,6 +12,8 @@
 {
 #if defined(BOOST_CHRONO_HAS_THREAD_CLOCK)
         check_clock_now<boost::chrono::thread_clock>();
+    check_clock_now_ec<boost::chrono::thread_clock>();
+    check_clock_now_throws<boost::chrono::thread_clock>();
 #endif
-    return 0;
+    return boost::report_errors();
 }