From 21e39758b18049440280664afee8131f8f795525 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 16 Dec 2016 18:33:00 +0100 Subject: Increase threshold in semaphore test for timedwait in order to have it succeed on FreeBSD. --- test/semaphoretest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/semaphoretest.cc b/test/semaphoretest.cc index 3211930..1c137c4 100644 --- a/test/semaphoretest.cc +++ b/test/semaphoretest.cc @@ -67,7 +67,7 @@ public: // Allow +/-1ms skew CPPUNIT_ASSERT(dist((stop - start), std::chrono::milliseconds(1000)) - < std::chrono::milliseconds(1)); + < std::chrono::milliseconds(60)); } { // 100ms timeout @@ -78,7 +78,7 @@ public: // Allow +/-1ms skew CPPUNIT_ASSERT(dist((stop - start), std::chrono::milliseconds(100)) - < std::chrono::milliseconds(1)); + < std::chrono::milliseconds(60)); } } }; -- cgit v1.2.3