summaryrefslogtreecommitdiff
path: root/core/fxcrt/unowned_ptr_unittest.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-01-08 15:59:28 -0800
committerChromium commit bot <commit-bot@chromium.org>2018-01-09 00:26:44 +0000
commit93c0f344d8c568535bd56d591b3d42050c71676a (patch)
treedc0c6c5077b2a8919607e3f08936e89539584576 /core/fxcrt/unowned_ptr_unittest.cpp
parent63579f90483ec759fe849c451b76dbae306c3da6 (diff)
downloadpdfium-93c0f344d8c568535bd56d591b3d42050c71676a.tar.xz
Fix death tests for UnownedPtr + MSAN.
They should only expect death in ASAN builds. BUG=pdfium:958 Change-Id: I62bd51151238bc57abb5fe700985c33d7fde3e28 Reviewed-on: https://pdfium-review.googlesource.com/21930 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcrt/unowned_ptr_unittest.cpp')
-rw-r--r--core/fxcrt/unowned_ptr_unittest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fxcrt/unowned_ptr_unittest.cpp b/core/fxcrt/unowned_ptr_unittest.cpp
index 3fc5308e46..26dffd46ec 100644
--- a/core/fxcrt/unowned_ptr_unittest.cpp
+++ b/core/fxcrt/unowned_ptr_unittest.cpp
@@ -54,7 +54,7 @@ TEST(UnownedPtr, PtrOk) {
}
TEST(UnownedPtr, PtrNotOk) {
-#if defined(MEMORY_TOOL_REPLACES_ALLOCATOR)
+#if defined(ADDRESS_SANITIZER)
EXPECT_DEATH(DeleteDangling(), "");
#else
DeleteDangling();
@@ -71,7 +71,7 @@ TEST(UnownedPtr, AssignOk) {
}
TEST(UnownedPtr, AssignNotOk) {
-#if defined(MEMORY_TOOL_REPLACES_ALLOCATOR)
+#if defined(ADDRESS_SANITIZER)
EXPECT_DEATH(AssignDangling(), "");
#else
AssignDangling();
@@ -88,7 +88,7 @@ TEST(UnownedPtr, ReleaseOk) {
}
TEST(UnownedPtr, ReleaseNotOk) {
-#if defined(MEMORY_TOOL_REPLACES_ALLOCATOR)
+#if defined(ADDRESS_SANITIZER)
EXPECT_DEATH(ReleaseDangling(), "");
#else
ReleaseDangling();