Index: base/time_win_unittest.cc |
diff --git a/base/time_win_unittest.cc b/base/time_win_unittest.cc |
index e3ba09a690764b417976693317521daf8eec412a..f7640073af4d86b037d2926dace51f2868bdbe90 100644 |
--- a/base/time_win_unittest.cc |
+++ b/base/time_win_unittest.cc |
@@ -229,7 +229,8 @@ TEST(TimeTicks, Drift) { |
// Sanity check. We expect some time drift to occur, especially across |
// the number of iterations we do. However, if the QPC is disabled, this |
// is not measuring anything (drift is zero in that case). |
- EXPECT_LT(0, total_drift); |
+ if (TimeTicks::IsHighResClockWorking()) |
+ EXPECT_LT(0, total_drift); |
jar (doing other things)
2012/03/28 18:46:56
This seems like a high-risk flaky test.
In additi
|
printf("average time drift in microseconds: %lld\n", |
total_drift / kIterations); |