projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Loosen test. After sleep(1), elapsed seconds could be more than 1
[metaproxy-moved-to-github.git]
/
src
/
test_boost_time.cpp
diff --git
a/src/test_boost_time.cpp
b/src/test_boost_time.cpp
index
d300b40
..
d49c814
100644
(file)
--- a/
src/test_boost_time.cpp
+++ b/
src/test_boost_time.cpp
@@
-1,5
+1,5
@@
-/* $Id: test_boost_time.cpp,v 1.8 2006-06-10 14:29:12 adam Exp $
- Copyright (c) 2005-2006, Index Data.
+/* $Id: test_boost_time.cpp,v 1.10 2007-04-20 08:53:34 adam Exp $
+ Copyright (c) 2005-2007, Index Data.
See the LICENSE file for details
*/
See the LICENSE file for details
*/
@@
-37,7
+37,7
@@
BOOST_AUTO_UNIT_TEST( testboosttime1 )
boost::posix_time::time_duration duration = then - now;
//std::cout << duration << std::endl;
boost::posix_time::time_duration duration = then - now;
//std::cout << duration << std::endl;
- BOOST_CHECK (duration.total_seconds() == 1);
+ BOOST_CHECK (duration.total_seconds() >= 1);
BOOST_CHECK (duration.fractional_seconds() > 0);
}
BOOST_CHECK (duration.fractional_seconds() > 0);
}