[NFC][sanitizer] Fail test quickly

This commit is contained in:
Vitaly Buka 2021-11-29 13:07:11 -08:00
parent 9e3e1aad31
commit aeeacbd989
1 changed files with 2 additions and 0 deletions

View File

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