Test commit for new post-commit hooks.
[oota-llvm.git] / unittests / Support / LeakDetectorTest.cpp
index 85ef04676dcdca48df5c09ba7668c4a04d1d6276..d198c7a8bda0bc7fccc1fd7d454fc91558a657f8 100644 (file)
@@ -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
 
 }