diff options
Diffstat (limited to 'test/asan/TestCases/throw_catch.cc')
-rw-r--r-- | test/asan/TestCases/throw_catch.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/asan/TestCases/throw_catch.cc b/test/asan/TestCases/throw_catch.cc index 7e0d76d10..bce48199d 100644 --- a/test/asan/TestCases/throw_catch.cc +++ b/test/asan/TestCases/throw_catch.cc @@ -34,7 +34,9 @@ void TestThrow() { __asan_address_is_poisoned(x + 32)); // FIXME: Invert this assertion once we fix // https://code.google.com/p/address-sanitizer/issues/detail?id=258 - assert(!__asan_address_is_poisoned(x + 32)); + // This assertion works only w/o UAR. + if (!__asan_get_current_fake_stack()) + assert(!__asan_address_is_poisoned(x + 32)); } void TestThrowInline() { @@ -51,7 +53,9 @@ void TestThrowInline() { __asan_address_is_poisoned(x + 32)); // FIXME: Invert this assertion once we fix // https://code.google.com/p/address-sanitizer/issues/detail?id=258 - assert(!__asan_address_is_poisoned(x + 32)); + // This assertion works only w/o UAR. + if (!__asan_get_current_fake_stack()) + assert(!__asan_address_is_poisoned(x + 32)); } int main(int argc, char **argv) { |