Skip to content

Commit 61aef97

Browse files
authored
Compile MSAN/TSAN failing test with -O1 (#73555)
This attempts to fix flakes on the bots where the modified test times out while running under sanitizers. Turning on the optimizer for just this test appears to mostly fix the issue.
1 parent fc19424 commit 61aef97

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libcxx/test/std/containers/sequences/deque/deque.modifiers/insert_iter_iter.pass.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
// REQUIRES: long_tests
1010
// UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME
1111

12+
// This test chokes on the sanitizers during CI runs. It appears we can address most of this by simply enabling optimizations.
13+
// ADDITIONAL_COMPILE_FLAGS(msan): -O1
14+
// ADDITIONAL_COMPILE_FLAGS(tsan): -O1
15+
1216
// <deque>
1317

1418
// template <class InputIterator>

libcxx/test/std/numerics/rand/rand.dist/rand.dist.bern/rand.dist.bern.negbin/eval.pass.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
//
99
// REQUIRES: long_tests
1010

11+
// This test is super slow, in particular with msan or tsan. In order to avoid timeouts and to
12+
// spend less time waiting for this particular test to complete we compile with optimizations.
13+
// ADDITIONAL_COMPILE_FLAGS: -O1
14+
1115
// <random>
1216

1317
// template<class IntType = int>

0 commit comments

Comments
 (0)