Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74500 - in trunk/libs/chrono/test: . stopwatch
From: vicente.botet_at_[hidden]
Date: 2011-09-21 16:50:46


Author: viboes
Date: 2011-09-21 16:50:44 EDT (Wed, 21 Sep 2011)
New Revision: 74500
URL: http://svn.boost.org/trac/boost/changeset/74500

Log:
Chrono: remove test file_line
Text files modified:
   trunk/libs/chrono/test/Jamfile.v2 | 2 +-
   trunk/libs/chrono/test/stopwatch/simple_lightweight_stopwatch_reporter_pass.cpp | 4 ++--
   trunk/libs/chrono/test/stopwatch/simple_stopwatch_pass.cpp | 7 +++++--
   trunk/libs/chrono/test/stopwatch/simple_stopwatch_reporter_pass.cpp | 4 ++--
   4 files changed, 10 insertions(+), 7 deletions(-)

Modified: trunk/libs/chrono/test/Jamfile.v2
==============================================================================
--- trunk/libs/chrono/test/Jamfile.v2 (original)
+++ trunk/libs/chrono/test/Jamfile.v2 2011-09-21 16:50:44 EDT (Wed, 21 Sep 2011)
@@ -247,7 +247,7 @@
         [ chrono-run ../example/stopwatch_example.cpp ]
         ;
 
- test-suite "stopclocks"
+ test-suite "stopclock"
         :
         [ chrono-run2-mt ../example/lightweight_stopwatch_reporter_example.cpp : lightweight_stopwatch_reporter_example ]
         [ chrono-run2-mt ../example/stopwatch_reporter_example.cpp : stopwatch_reporter_example ]

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-21 16:50:44 EDT (Wed, 21 Sep 2011)
@@ -102,7 +102,7 @@
   typename Reporter::duration d=sw.elapsed();
   std::cout << d << std::endl;
   if (check)
- BOOST_TEST(d >= milliseconds(100));
+ BOOST_TEST(d >= milliseconds(100));
 }
 
 template <typename Clock>
@@ -139,7 +139,7 @@
   check_constructor_throws<Clock>();
   check_elapsed<Clock>(check);
   check_report<Clock>();
- check_file_line<Clock>();
+ //check_file_line<Clock>();
 }
 
 int main()

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-21 16:50:44 EDT (Wed, 21 Sep 2011)
@@ -16,6 +16,9 @@
 #include <boost/chrono/stopwatches/simple_stopwatch.hpp>
 #include <boost/chrono/process_cpu_clocks.hpp>
 #include <boost/chrono/thread_clock.hpp>
+#include <boost/chrono/stopwatches/reporters/system_default_formatter.hpp>
+#include <boost/chrono/stopwatches/reporters/process_default_formatter.hpp>
+#include <boost/chrono/stopwatches/reporters/thread_default_formatter.hpp>
 #include <boost/chrono/chrono_io.hpp>
 #include <boost/system/system_error.hpp>
 #include <boost/detail/lightweight_test.hpp>
@@ -81,8 +84,8 @@
   ex::sleep_for(boost::chrono::milliseconds(100));
   typename Stopwatch::duration d=sw.elapsed();
   std::cout << d << std::endl;
- //if (check)
- //BOOST_TEST(d >= boost::chrono::milliseconds(100));
+ if (check)
+ BOOST_TEST(d >= boost::chrono::milliseconds(100));
 }
 
 template <typename Clock>

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-21 16:50:44 EDT (Wed, 21 Sep 2011)
@@ -110,7 +110,7 @@
   typename Reporter::duration d=sw.elapsed();
   std::cout << d << std::endl;
   if (check)
- BOOST_TEST(d >= milliseconds(100));
+ BOOST_TEST(d >= milliseconds(100));
 }
 
 template <typename Clock>
@@ -131,7 +131,7 @@
   check_constructor_throws<Clock>();
   check_elapsed<Clock>(check);
   check_report<Clock>();
- check_file_line<Clock>();
+ //check_file_line<Clock>();
 }
 
 int main()


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