[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()); }; }