aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/shared-ptr/driver.cxx5
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