|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74592 - in trunk/libs/chrono/test: io stopwatch
From: vicente.botet_at_[hidden]
Date: 2011-09-27 15:23:43
Author: viboes
Date: 2011-09-27 15:23:42 EDT (Tue, 27 Sep 2011)
New Revision: 74592
URL: http://svn.boost.org/trac/boost/changeset/74592
Log:
Chrono: Fix abiguity by prefixing with boost:: and try to catch other Sun errors.
Text files modified:
trunk/libs/chrono/test/io/duration_input.cpp | 8 ++++----
trunk/libs/chrono/test/io/duration_output.cpp | 8 ++++----
trunk/libs/chrono/test/io/time_point_input.cpp | 8 ++++----
trunk/libs/chrono/test/io/time_point_output.cpp | 8 ++++----
trunk/libs/chrono/test/stopwatch/simple_lightweight_stopwatch_reporter_pass.cpp | 4 ++--
trunk/libs/chrono/test/stopwatch/simple_stopwatch_pass.cpp | 4 ++--
trunk/libs/chrono/test/stopwatch/simple_stopwatch_reporter_pass.cpp | 2 +-
7 files changed, 21 insertions(+), 21 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-09-27 15:23:42 EDT (Tue, 27 Sep 2011)
@@ -48,16 +48,16 @@
test_good("5000 milliseconds", milliseconds(5000));
test_good("5000 microseconds", microseconds(5000));
test_good("5000 nanoseconds", nanoseconds(5000));
- test_good("5000 deciseconds", duration<int_least64_t, deci> (5000));
- test_good("5000 [1/30]seconds", duration<int_least64_t, ratio<1, 30> > (5000));
+ test_good("5000 deciseconds", duration<boost::int_least64_t, deci> (5000));
+ test_good("5000 [1/30]seconds", duration<boost::int_least64_t, ratio<1, 30> > (5000));
test_good("5000 h", hours(5000));
test_good("5000 m", minutes(5000));
test_good("5000 s", seconds(5000));
test_good("5000 ms", milliseconds(5000));
test_good("5000 ns", nanoseconds(5000));
- test_good("5000 ds", duration<int_least64_t, deci> (5000));
- test_good("5000 [1/30]s", duration<int_least64_t, ratio<1, 30> > (5000));
+ test_good("5000 ds", duration<boost::int_least64_t, deci> (5000));
+ test_good("5000 [1/30]s", duration<boost::int_least64_t, ratio<1, 30> > (5000));
test_good("5000 milliseconds", seconds(5));
test_good("5 milliseconds", nanoseconds(5000000));
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-09-27 15:23:42 EDT (Tue, 27 Sep 2011)
@@ -73,16 +73,16 @@
test_good_prefix("5000 milliseconds", milliseconds(5000));
test_good_prefix("5000 microseconds", microseconds(5000));
test_good_prefix("5000 nanoseconds", nanoseconds(5000));
- test_good_prefix("5000 deciseconds", duration<int_least64_t, deci> (5000));
- test_good_prefix("5000 [1/30]seconds", duration<int_least64_t, ratio<1, 30> > (5000));
+ test_good_prefix("5000 deciseconds", duration<boost::int_least64_t, deci> (5000));
+ test_good_prefix("5000 [1/30]seconds", duration<boost::int_least64_t, ratio<1, 30> > (5000));
test_good_symbol("5000 h", hours(5000));
test_good_symbol("5000 m", minutes(5000));
test_good_symbol("5000 s", seconds(5000));
test_good_symbol("5000 ms", milliseconds(5000));
test_good_symbol("5000 ns", nanoseconds(5000));
- test_good_symbol("5000 ds", duration<int_least64_t, deci> (5000));
- test_good_symbol("5000 [1/30]s", duration<int_least64_t, ratio<1, 30> > (5000));
+ test_good_symbol("5000 ds", duration<boost::int_least64_t, deci> (5000));
+ test_good_symbol("5000 [1/30]s", duration<boost::int_least64_t, ratio<1, 30> > (5000));
test_state_saver("5000 h", "5000 h 5000 hours", hours(5000), duration_style::symbol);
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-09-27 15:23:42 EDT (Tue, 27 Sep 2011)
@@ -60,16 +60,16 @@
test_good<Clock>("5000 milliseconds", milliseconds(5000));
test_good<Clock>("5000 microseconds", microseconds(5000));
test_good<Clock>("5000 nanoseconds", nanoseconds(5000));
- test_good<Clock>("5000 deciseconds", duration<int_least64_t, deci> (5000));
- test_good<Clock>("5000 [1/30]seconds", duration<int_least64_t, ratio<1, 30> > (5000));
+ test_good<Clock>("5000 deciseconds", duration<boost::int_least64_t, deci> (5000));
+ test_good<Clock>("5000 [1/30]seconds", duration<boost::int_least64_t, ratio<1, 30> > (5000));
test_good<Clock>("5000 h", hours(5000));
test_good<Clock>("5000 m", minutes(5000));
test_good<Clock>("5000 s", seconds(5000));
test_good<Clock>("5000 ms", milliseconds(5000));
test_good<Clock>("5000 ns", nanoseconds(5000));
- test_good<Clock>("5000 ds", duration<int_least64_t, deci> (5000));
- test_good<Clock>("5000 [1/30]s", duration<int_least64_t, ratio<1, 30> > (5000));
+ test_good<Clock>("5000 ds", duration<boost::int_least64_t, deci> (5000));
+ test_good<Clock>("5000 [1/30]s", duration<boost::int_least64_t, ratio<1, 30> > (5000));
test_good<Clock>("5000 milliseconds", seconds(5));
test_good<Clock>("5 milliseconds", nanoseconds(5000000));
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-09-27 15:23:42 EDT (Tue, 27 Sep 2011)
@@ -53,16 +53,16 @@
test_good_prefix<Clock>("2 milliseconds", milliseconds(2));
test_good_prefix<Clock>("2 microseconds", microseconds(2));
test_good_prefix<Clock>("2 nanoseconds", nanoseconds(2));
- test_good_prefix<Clock>("2 deciseconds", duration<int_least64_t, deci> (2));
- test_good_prefix<Clock>("2 [1/30]seconds", duration<int_least64_t, ratio<1, 30> > (2));
+ test_good_prefix<Clock>("2 deciseconds", duration<boost::int_least64_t, deci> (2));
+ test_good_prefix<Clock>("2 [1/30]seconds", duration<boost::int_least64_t, ratio<1, 30> > (2));
test_good_symbol<Clock>("2 h", hours(2));
test_good_symbol<Clock>("2 m", minutes(2));
test_good_symbol<Clock>("2 s", seconds(2));
test_good_symbol<Clock>("2 ms", milliseconds(2));
test_good_symbol<Clock>("2 ns", nanoseconds(2));
- test_good_symbol<Clock>("2 ds", duration<int_least64_t, deci> (2));
- test_good_symbol<Clock>("2 [1/30]s", duration<int_least64_t, ratio<1, 30> > (2));
+ test_good_symbol<Clock>("2 ds", duration<boost::int_least64_t, deci> (2));
+ test_good_symbol<Clock>("2 [1/30]s", duration<boost::int_least64_t, ratio<1, 30> > (2));
}
int main()
Modified: trunk/libs/chrono/test/stopwatch/simple_lightweight_stopwatch_reporter_pass.cpp
==============================================================================
--- trunk/libs/chrono/test/stopwatch/simple_lightweight_stopwatch_reporter_pass.cpp (original)
+++ trunk/libs/chrono/test/stopwatch/simple_lightweight_stopwatch_reporter_pass.cpp 2011-09-27 15:23:42 EDT (Tue, 27 Sep 2011)
@@ -154,10 +154,10 @@
Reporter _(fmtr);
std::cout << "high_resolution_clock=\n";
- check_all<high_resolution_clock>();
+ check_all<high_resolution_clock>(false);
#ifdef BOOST_CHRONO_HAS_CLOCK_STEADY
std::cout << "steady_clock=\n";
- check_all<steady_clock>();
+ check_all<steady_clock>(false);
#endif
std::cout << "system_clock=\n";
check_all<system_clock>(false);
Modified: trunk/libs/chrono/test/stopwatch/simple_stopwatch_pass.cpp
==============================================================================
--- trunk/libs/chrono/test/stopwatch/simple_stopwatch_pass.cpp (original)
+++ trunk/libs/chrono/test/stopwatch/simple_stopwatch_pass.cpp 2011-09-27 15:23:42 EDT (Tue, 27 Sep 2011)
@@ -96,10 +96,10 @@
int main()
{
std::cout << "high_resolution_clock=";
- check_all<boost::chrono::high_resolution_clock>();
+ check_all<boost::chrono::high_resolution_clock>(false);
#ifdef BOOST_CHRONO_HAS_CLOCK_STEADY
std::cout << "steady_clock=";
- check_all<boost::chrono::steady_clock>();
+ check_all<boost::chrono::steady_clock>(false);
#endif
std::cout << "system_clock=";
check_all<boost::chrono::system_clock>(false);
Modified: trunk/libs/chrono/test/stopwatch/simple_stopwatch_reporter_pass.cpp
==============================================================================
--- trunk/libs/chrono/test/stopwatch/simple_stopwatch_reporter_pass.cpp (original)
+++ trunk/libs/chrono/test/stopwatch/simple_stopwatch_reporter_pass.cpp 2011-09-27 15:23:42 EDT (Tue, 27 Sep 2011)
@@ -149,7 +149,7 @@
check_all<high_resolution_clock>();
#ifdef BOOST_CHRONO_HAS_CLOCK_STEADY
std::cout << "steady_clock=\n";
- check_all<steady_clock>();
+ check_all<steady_clock>(false);
#endif
std::cout << "system_clock=\n";
check_all<system_clock>(false);
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