$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r86418 - in trunk/libs/chrono/test: . io
From: vicente.botet_at_[hidden]
Date: 2013-10-24 13:19:47
Author: viboes
Date: 2013-10-24 13:19:47 EDT (Thu, 24 Oct 2013)
New Revision: 86418
URL: http://svn.boost.org/trac/boost/changeset/86418
Log:
Chrono: Add missing include cstdio in test io/time_point_output.
Text files modified: 
   trunk/libs/chrono/test/io/time_point_output.cpp |     1 +                                       
   trunk/libs/chrono/test/test_7868.cpp            |     6 ++++++                                  
   2 files changed, 7 insertions(+), 0 deletions(-)
Modified: trunk/libs/chrono/test/io/time_point_output.cpp
==============================================================================
--- trunk/libs/chrono/test/io/time_point_output.cpp	Thu Oct 24 10:05:26 2013	(r86417)
+++ trunk/libs/chrono/test/io/time_point_output.cpp	2013-10-24 13:19:47 EDT (Thu, 24 Oct 2013)	(r86418)
@@ -10,6 +10,7 @@
 #include <boost/chrono/process_cpu_clocks.hpp>
 #include <locale>
 #include <ctime>
+#include <cstdio>
 
 template <typename Clock, typename D>
 void test_good_prefix(const char* str, D d)
Modified: trunk/libs/chrono/test/test_7868.cpp
==============================================================================
--- trunk/libs/chrono/test/test_7868.cpp	Thu Oct 24 10:05:26 2013	(r86417)
+++ trunk/libs/chrono/test/test_7868.cpp	2013-10-24 13:19:47 EDT (Thu, 24 Oct 2013)	(r86418)
@@ -26,10 +26,16 @@
       // does not change anything: strm2<<time_fmt(boost::chrono::timezone::utc);
       boost::chrono::system_clock::time_point atnow2;
       strm<<atnow<<std::endl;
+      time_t t = boost::chrono::system_clock::to_time_t(atnow);
+      std::cout << "A:" << std::endl;
+      puts(ctime(&t));
+      std::cout << "A:" << std::endl;
       std::cout << "A:" << strm.str()<< std::endl;
+      std::cout << "A:" << atnow.time_since_epoch().count() << std::endl;
       strm>>atnow2;
       strm2<<atnow2<<std::endl;
       std::cout << "B:" << strm2.str()<< std::endl;
+      std::cout << "B:" << atnow2.time_since_epoch().count()<< std::endl;
       BOOST_TEST_EQ(atnow.time_since_epoch().count(), atnow2.time_since_epoch().count());
 
       // 1 sec wrong: