From b5cd01335bfb25a8b1fea027a16651e3d1630733 Mon Sep 17 00:00:00 2001 From: Jeffrey Yasskin Date: Wed, 17 Mar 2010 01:18:45 +0000 Subject: Fix death tests in -Asserts builds. llvm-svn: 98701 --- llvm/unittests/Support/LeakDetectorTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/unittests/Support/LeakDetectorTest.cpp') 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 } -- cgit v1.2.3