[compiler-rt] aeeacbd - [NFC][sanitizer] Fail test quickly
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 30 14:00:18 PST 2021
Author: Vitaly Buka
Date: 2021-11-30T14:00:07-08:00
New Revision: aeeacbd989fc474d920afa1b1dd3fb4ef502c726
URL: https://github.com/llvm/llvm-project/commit/aeeacbd989fc474d920afa1b1dd3fb4ef502c726
DIFF: https://github.com/llvm/llvm-project/commit/aeeacbd989fc474d920afa1b1dd3fb4ef502c726.diff
LOG: [NFC][sanitizer] Fail test quickly
Added:
Modified:
compiler-rt/lib/sanitizer_common/tests/sanitizer_stack_store_test.cpp
Removed:
################################################################################
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 6b11ada6eb05c..50f061453f313 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 @@ class StackStoreTest : public testing::Test {
if (!s.size && !s.tag)
continue;
fn(s);
+ if (HasFailure())
+ return;
std::next_permutation(frames.begin(), frames.end());
};
}
More information about the llvm-commits
mailing list