Update of /cvsroot/boost/boost/libs/asio/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11729

Modified Files:
        deadline_timer.cpp 
Log Message:
Fix another incorrect condition.


Index: deadline_timer.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/asio/test/deadline_timer.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- deadline_timer.cpp  8 May 2007 10:49:40 -0000       1.6
+++ deadline_timer.cpp  8 May 2007 10:55:12 -0000       1.7
@@ -18,7 +18,6 @@
 
 #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;
@@ -162,7 +161,7 @@
   BOOST_CHECK(count == 0);
   end = now();
   expected_end = start + seconds(2);
-  BOOST_CHECK(end < expected_end);
+  BOOST_CHECK(expected_end < end || expected_end == end);
 
   // Wait on the timer again without cancelling it. This time the asynchronous
   // wait should run to completion and increment the counter.
@@ -177,7 +176,7 @@
   BOOST_CHECK(count == 1);
   end = now();
   expected_end = start + seconds(10);
-  BOOST_CHECK(expected_end <= end);
+  BOOST_CHECK(expected_end < end || expected_end == end);
 }
 
 test_suite* init_unit_test_suite(int argc, char* argv[])


-------------------------------------------------------------------------
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

Reply via email to