Skip to content

Commit 3249c11

Browse files
committed
Compile MSAN/TSAN failing test with -O1
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 7eccd52 commit 3249c11

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
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: -O1
14+
1215
// <deque>
1316

1417
// template <class InputIterator>

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

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

11+
// This test chokes on the sanitizers during CI runs. It appears we can address most of this by simply enabling optimizations.
12+
// ADDITIONAL_COMPILE_FLAGS: -O1
13+
1114
// <random>
1215

1316
// template<class IntType = int>

0 commit comments

Comments
 (0)