Update of /cvsroot/boost/boost/libs/date_time/test/posix_time
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv7282/posix_time
Modified Files:
Tag: RC_1_34_0
testmicrosec_time_clock.cpp
Log Message:
allow tests to pass if the clock time is equal to the last -- happens on fast
machines.
Index: testmicrosec_time_clock.cpp
===================================================================
RCS file:
/cvsroot/boost/boost/libs/date_time/test/posix_time/testmicrosec_time_clock.cpp,v
retrieving revision 1.11
retrieving revision 1.11.4.1
diff -u -d -r1.11 -r1.11.4.1
--- testmicrosec_time_clock.cpp 17 Feb 2005 13:52:25 -0000 1.11
+++ testmicrosec_time_clock.cpp 25 Feb 2007 19:59:19 -0000 1.11.4.1
@@ -50,7 +50,7 @@
check("seconds match",
t1.time_of_day().minutes() == t2.time_of_day().minutes());
check("hours date", t1.date() == t2.date());
- if( !check("last is less", last < t2) ) {
+ if( !check("last is less", last <= t2) ) {
std::cout << to_simple_string(last) << " < "
<< to_simple_string(t2) << std::endl;
}
@@ -91,8 +91,8 @@
check("seconds match",
t1.time_of_day().minutes() == t2.time_of_day().minutes());
check("hours date", t1.date() == t2.date());
- //check("last is less", last < t2);
- if( !check("last is less", last < t2) ) {
+ //following check might be equal on a really fast machine
+ if( !check("last is less", last <= t2) ) {
std::cout << to_simple_string(last) << " < "
<< to_simple_string(t2) << std::endl;
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs