aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2018-12-11 15:39:34 +0000
committerMichal Gorny <mgorny@gentoo.org>2018-12-11 15:39:34 +0000
commit741abf8b8655dc1825d9d72ae85cfa14ae93b898 (patch)
tree9784fb78b786c09a0faeb7176c78a67c68d32aa7
parent84d57ed8c5061ed6422f84d663997b6e667e6584 (diff)
[test] [runtime] Permit omp_get_wtick() to return 0.01
Increase the range for omp_get_wtick() test to allow for 0.01 (from <0.01). This is needed for NetBSD where it returns exactly that value due to CLOCKS_PER_SEC being 100. This should not cause a significant difference from e.g. FreeBSD where it is 128, and especially from Linux where CLOCKS_PER_SEC is apparently meaningless and sysconf(_SC_CLK_TCK) gives 100 as well. Differential Revision: https://reviews.llvm.org/D55493 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@348857 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--runtime/test/api/omp_get_wtick.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/test/api/omp_get_wtick.c b/runtime/test/api/omp_get_wtick.c
index 8b35226..11a320f 100644
--- a/runtime/test/api/omp_get_wtick.c
+++ b/runtime/test/api/omp_get_wtick.c
@@ -7,7 +7,7 @@ int test_omp_get_wtick()
double tick;
tick = -1.;
tick = omp_get_wtick ();
- return ((tick > 0.0) && (tick < 0.01));
+ return ((tick > 0.0) && (tick <= 0.01));
}
int main()