Commit f6258671 authored by gejun's avatar gejun

loose a time assertion in test/bthread_cond_unittest.cpp

parent a5d2d4ec
......@@ -97,7 +97,7 @@ TEST(CondTest, sanity) {
long delta = wake_time[i] - last_time - SIGNAL_INTERVAL_US;
EXPECT_GT(wake_time[i], last_time);
square_sum += delta * delta;
EXPECT_LT(labs(delta), 2000L) << "error[" << i << "]=" << delta << "="
EXPECT_LT(labs(delta), 10000L) << "error[" << i << "]=" << delta << "="
<< wake_time[i] << " - " << last_time;
}
printf("Average error is %fus\n", sqrt(square_sum / std::max(nbeforestop, 1UL)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment