commit | aeeacbd989fc474d920afa1b1dd3fb4ef502c726 | [log] [tgz] |
---|---|---|
author | Vitaly Buka <vitalybuka@google.com> | Mon Nov 29 13:07:11 2021 -0800 |
committer | Vitaly Buka <vitalybuka@google.com> | Tue Nov 30 14:00:07 2021 -0800 |
tree | 272d6d1e254770025fdbd5ab4c81ed9e3fed5b27 | |
parent | 9e3e1aad3161f4ce5301c3a59c7313ad83240a6d [diff] |
[NFC][sanitizer] Fail test quickly
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stack_store_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stack_store_test.cpp index 6b11ada..50f0614 100644 --- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_stack_store_test.cpp +++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_stack_store_test.cpp
@@ -37,6 +37,8 @@ if (!s.size && !s.tag) continue; fn(s); + if (HasFailure()) + return; std::next_permutation(frames.begin(), frames.end()); }; }