From f7c9dc398b4cb271ae95c46a7741b0a35ad57523 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 20 Apr 2007 08:53:34 +0000 Subject: [PATCH] Loosen test. After sleep(1), elapsed seconds could be more than 1 (say 2) on a loaded system! --- src/test_boost_time.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test_boost_time.cpp b/src/test_boost_time.cpp index 56e9bdd..d49c814 100644 --- 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); } -- 1.7.10.4