[compiler-rt] c4b7c47 - [scudo] Fix expectation in ScudoTimingTest.VerifyMax (#106062)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 26 10:55:05 PDT 2024
Author: Fabio D'Urso
Date: 2024-08-26T19:55:02+02:00
New Revision: c4b7c47fa53ee6d75b64737d475e5dbd1ed4a409
URL: https://github.com/llvm/llvm-project/commit/c4b7c47fa53ee6d75b64737d475e5dbd1ed4a409
DIFF: https://github.com/llvm/llvm-project/commit/c4b7c47fa53ee6d75b64737d475e5dbd1ed4a409.diff
LOG: [scudo] Fix expectation in ScudoTimingTest.VerifyMax (#106062)
Added:
Modified:
compiler-rt/lib/scudo/standalone/tests/timing_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/tests/timing_test.cpp b/compiler-rt/lib/scudo/standalone/tests/timing_test.cpp
index 23f0a02ea4277b..a762aee48f7c63 100644
--- a/compiler-rt/lib/scudo/standalone/tests/timing_test.cpp
+++ b/compiler-rt/lib/scudo/standalone/tests/timing_test.cpp
@@ -154,7 +154,7 @@ TEST_F(ScudoTimingTest, VerifyMax) {
unsigned long long MaxNs = std::strtoull(&end[6], &end, 10);
ASSERT_TRUE(end != nullptr);
- EXPECT_GT(MaxNs, AvgNs);
+ EXPECT_GE(MaxNs, AvgNs);
}
TEST_F(ScudoTimingTest, VerifyMultipleTimerCalls) {
More information about the llvm-commits
mailing list