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.
This commit is contained in:
Eric 2023-11-29 18:01:18 -05:00 committed by GitHub
parent fc19424d1d
commit 61aef978d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,10 @@
// REQUIRES: long_tests
// UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME
// This test chokes on the sanitizers during CI runs. It appears we can address most of this by simply enabling optimizations.
// ADDITIONAL_COMPILE_FLAGS(msan): -O1
// ADDITIONAL_COMPILE_FLAGS(tsan): -O1
// <deque>
// template <class InputIterator>

View File

@ -8,6 +8,10 @@
//
// REQUIRES: long_tests
// This test is super slow, in particular with msan or tsan. In order to avoid timeouts and to
// spend less time waiting for this particular test to complete we compile with optimizations.
// ADDITIONAL_COMPILE_FLAGS: -O1
// <random>
// template<class IntType = int>