summaryrefslogtreecommitdiff
path: root/unittests/Support
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@FreeBSD.org>2010-03-21 10:49:05 +0000
committerRoman Divacky <rdivacky@FreeBSD.org>2010-03-21 10:49:05 +0000
commit2f12f10af369d468b14617276446166383d692ed (patch)
tree2caca31db4facdc95c23930c0c745c8ef0dee97d /unittests/Support
parentc69102774f9739c81ae1285ed9ae62405071c63c (diff)
downloadsrc-test2-2f12f10af369d468b14617276446166383d692ed.tar.gz
src-test2-2f12f10af369d468b14617276446166383d692ed.zip
Notes
Diffstat (limited to 'unittests/Support')
-rw-r--r--unittests/Support/LeakDetectorTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/Support/LeakDetectorTest.cpp b/unittests/Support/LeakDetectorTest.cpp
index 85ef04676dcd..d198c7a8bda0 100644
--- a/unittests/Support/LeakDetectorTest.cpp
+++ b/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
}