We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 053f52a commit 5c59babCopy full SHA for 5c59bab
test/sync/mutual_exclusion/locks/unique_lock/cons/time_point_pass.cpp
@@ -55,8 +55,8 @@ void f2()
55
boost::unique_lock<boost::timed_mutex> lk(m, Clock::now() + ms(250));
56
BOOST_TEST(lk.owns_lock() == false);
57
t1 = Clock::now();
58
- ns d = t1 - t0 - ms(250);
59
- BOOST_TEST(d < max_diff);
+ ms d = boost::chrono::duration_cast<boost::chrono::milliseconds>(t1 - t0) - ms(250);
+ BOOST_TEST_LT(d/ms(1), max_diff/ms(1));
60
}
61
62
int main()
0 commit comments