Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80001 - trunk/libs/thread/test
From: vicente.botet_at_[hidden]
Date: 2012-08-13 08:03:40


Author: viboes
Date: 2012-08-13 08:03:39 EDT (Mon, 13 Aug 2012)
New Revision: 80001
URL: http://svn.boost.org/trac/boost/changeset/80001

Log:
Thread: Added date trace for 6130 test
Text files modified:
   trunk/libs/thread/test/test_6130.cpp | 6 +++++-
   1 files changed, 5 insertions(+), 1 deletions(-)

Modified: trunk/libs/thread/test/test_6130.cpp
==============================================================================
--- trunk/libs/thread/test/test_6130.cpp (original)
+++ trunk/libs/thread/test/test_6130.cpp 2012-08-13 08:03:39 EDT (Mon, 13 Aug 2012)
@@ -4,6 +4,7 @@
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #include <boost/thread.hpp>
+#include <boost/date_time/posix_time/posix_time_io.hpp>
 #include <assert.h>
 #include <iostream>
 #include <stdlib.h>
@@ -34,10 +35,13 @@
     std::cerr << "now_time =" << now_time << " \n";
     std::cerr << "end_time =" << end_time << " \n";
     std::cerr << "wait_time=" << wait_time << " \n";
+ std::cerr << "now_time =" << from_time_t(now_time) << " \n";
+ std::cerr << "end_time =" << from_time_t(end_time) << " \n";
+ std::cerr << "wait_time=" << from_time_t(wait_time) << " \n";
     std::cerr << end_time - wait_time << " \n";
     assert(end_time >= wait_time);
     std::cerr << " OK\n";
   }
 #endif
- return 0;
+ return 1;
 }


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