forked from OSchip/llvm-project
[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:
parent
dc4ca0dbbc
commit
a5b2ec9c26
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue