From 3c4afaa824995d578a0a8f5dfdaed7eb6dccba4f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 23 May 2018 09:26:28 +0200 Subject: Omit out of bounds memory access test when building with address sanitizer --- tests/shared-ptr/driver.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/shared-ptr/driver.cxx') 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 -- cgit v1.1