projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9ecafa
)
Loosen test. After sleep(1), elapsed seconds could be more than 1
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 20 Apr 2007 08:53:34 +0000
(08:53 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 20 Apr 2007 08:53:34 +0000
(08:53 +0000)
(say 2) on a loaded system!
src/test_boost_time.cpp
patch
|
blob
|
history
diff --git
a/src/test_boost_time.cpp
b/src/test_boost_time.cpp
index
56e9bdd
..
d49c814
100644
(file)
--- a/
src/test_boost_time.cpp
+++ b/
src/test_boost_time.cpp
@@
-1,4
+1,4
@@
-/* $Id: test_boost_time.cpp,v 1.9 2007-01-25 14:05:54 adam Exp $
+/* $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
@@
-37,7
+37,7
@@
BOOST_AUTO_UNIT_TEST( testboosttime1 )
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);
}