[compiler-rt] 01b78b2 - [NFC] Fix flakiness in test if run unsharded (#112439)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 15 14:40:09 PDT 2024
Author: Vitaly Buka
Date: 2024-10-15T14:40:06-07:00
New Revision: 01b78b220b665b683b97dde6159c2f515afea8b8
URL: https://github.com/llvm/llvm-project/commit/01b78b220b665b683b97dde6159c2f515afea8b8
DIFF: https://github.com/llvm/llvm-project/commit/01b78b220b665b683b97dde6159c2f515afea8b8.diff
LOG: [NFC] Fix flakiness in test if run unsharded (#112439)
If we run all test in a single process, there is high
probability that `99` is already claimed.
Added:
Modified:
compiler-rt/lib/sanitizer_common/tests/sanitizer_chained_origin_depot_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_chained_origin_depot_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_chained_origin_depot_test.cpp
index a557c4645ba0c5..61171019a5706d 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_chained_origin_depot_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_chained_origin_depot_test.cpp
@@ -31,7 +31,7 @@ TEST(SanitizerCommon, ChainedOriginDepotBasic) {
TEST(SanitizerCommon, ChainedOriginDepotAbsent) {
u32 prev_id;
- EXPECT_EQ(0U, chainedOriginDepot.Get(99, &prev_id));
+ EXPECT_EQ(0U, chainedOriginDepot.Get(123456, &prev_id));
EXPECT_EQ(0U, prev_id);
}
More information about the llvm-commits
mailing list