diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-05-23 09:26:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-05-23 09:26:28 +0200 |
commit | 3c4afaa824995d578a0a8f5dfdaed7eb6dccba4f (patch) | |
tree | b0f3839b1d5b1e21e21334bae88d2c32d045b0dd | |
parent | 4e21797f8e9846dacd120f2fed881b6c14e37eb1 (diff) |
Omit out of bounds memory access test when building with address sanitizer
-rw-r--r-- | tests/shared-ptr/driver.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/shared-ptr/driver.cxx b/tests/shared-ptr/driver.cxx index b3fbb1d..ff3f17a 100644 --- a/tests/shared-ptr/driver.cxx +++ b/tests/shared-ptr/driver.cxx @@ -95,8 +95,10 @@ main () dec_ref (x); } - // Error handling (this theoretically can segfault). + // Error handling. This can theoretically can segfault and it trips up + // the address sanitizer. // +#ifndef __SANITIZE_ADDRESS__ { type* x (new type (5, "foo")); @@ -111,6 +113,7 @@ main () delete x; } +#endif // // shared_ptr |