[flang] Fix thinko in CPU_TIME test

We used to test that end > start, but it can well be >= (otherwise the
loop doesn't make sense).
This commit is contained in:
Diana Picus 2021-07-12 14:04:34 +00:00
parent dc4ca0dbbc
commit a5b2ec9c26
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ TEST(TimeIntrinsics, CpuTime) {
// before we time out, then we should probably look into an implementation
// for CpuTime with a better timer resolution.
for (double end = start; end == start; end = RTNAME(CpuTime)()) {
ASSERT_GT(end, 0.0);
ASSERT_GE(end, 0.0);
ASSERT_GE(end, start);
}
}