commit | 32aa02c2fed379f9d3e7771fbbf06636f311a929 | [log] [tgz] |
---|---|---|
author | Jeffrey Yasskin <jyasskin@google.com> | Wed Mar 17 01:18:45 2010 +0000 |
committer | Jeffrey Yasskin <jyasskin@google.com> | Wed Mar 17 01:18:45 2010 +0000 |
tree | 680325b87e6e74fb4ad37a121b4afd8a9bff4b7d | |
parent | 8ef7e2159fc1cccf6308d20f5ef7872c344e2253 [diff] [blame] |
Fix death tests in -Asserts builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98701 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/unittests/Support/LeakDetectorTest.cpp b/unittests/Support/LeakDetectorTest.cpp index 85ef046..d198c7a 100644 --- a/unittests/Support/LeakDetectorTest.cpp +++ b/unittests/Support/LeakDetectorTest.cpp
@@ -15,6 +15,7 @@ namespace { #ifdef GTEST_HAS_DEATH_TEST +#ifndef NDEBUG TEST(LeakDetector, Death1) { LeakDetector::addGarbageObject((void*) 1); LeakDetector::addGarbageObject((void*) 2); @@ -25,5 +26,6 @@ "Cache != o && \"Object already in set!\""); } #endif +#endif }