Update of /cvsroot/boost/boost/libs/asio/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11315
Modified Files:
deadline_timer.cpp
Log Message:
Additional error output to help diagnose test failures.
Index: deadline_timer.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/asio/test/deadline_timer.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- deadline_timer.cpp 4 Jan 2007 05:53:07 -0000 1.4
+++ deadline_timer.cpp 7 May 2007 12:13:40 -0000 1.5
@@ -18,6 +18,7 @@
#include <boost/bind.hpp>
#include <boost/asio.hpp>
+#include <boost/date_time/posix_time/posix_time.hpp>
#include "unit_test.hpp"
using namespace boost::posix_time;
@@ -176,6 +177,8 @@
BOOST_CHECK(count == 1);
end = now();
expected_end = start + seconds(10);
+ BOOST_CHECK_MESSAGE(expected_end < end, "expected_end = " <<
boost::posix_time::to_simple_string(expected_end));
+ BOOST_CHECK_MESSAGE(expected_end < end, "end = " <<
boost::posix_time::to_simple_string(end));
BOOST_CHECK(expected_end < end);
}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs