summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/LeakDetectorTest.cpp
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2010-03-17 01:18:45 +0000
committerJeffrey Yasskin <jyasskin@google.com>2010-03-17 01:18:45 +0000
commitb5cd01335bfb25a8b1fea027a16651e3d1630733 (patch)
tree724722a3e53e712573b8f56d9e772054348bee94 /llvm/unittests/Support/LeakDetectorTest.cpp
parent2ff380a43a1718ad961cef957d3b1d21bea18e69 (diff)
downloadbcm5719-llvm-b5cd01335bfb25a8b1fea027a16651e3d1630733.tar.gz
bcm5719-llvm-b5cd01335bfb25a8b1fea027a16651e3d1630733.zip
Fix death tests in -Asserts builds.
llvm-svn: 98701
Diffstat (limited to 'llvm/unittests/Support/LeakDetectorTest.cpp')
-rw-r--r--llvm/unittests/Support/LeakDetectorTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/Support/LeakDetectorTest.cpp b/llvm/unittests/Support/LeakDetectorTest.cpp
index 85ef04676dc..d198c7a8bda 100644
--- a/llvm/unittests/Support/LeakDetectorTest.cpp
+++ b/llvm/unittests/Support/LeakDetectorTest.cpp
@@ -15,6 +15,7 @@ using namespace llvm;
namespace {
#ifdef GTEST_HAS_DEATH_TEST
+#ifndef NDEBUG
TEST(LeakDetector, Death1) {
LeakDetector::addGarbageObject((void*) 1);
LeakDetector::addGarbageObject((void*) 2);
@@ -25,5 +26,6 @@ TEST(LeakDetector, Death1) {
"Cache != o && \"Object already in set!\"");
}
#endif
+#endif
}
OpenPOWER on IntegriCloud