From 1c3305dfe11f26dabdc3b769b10a2cc905224ace Mon Sep 17 00:00:00 2001 From: Eugene Leviant Date: Tue, 27 Dec 2016 11:07:53 +0000 Subject: [PATCH] Fix unit test in NDEBUG build llvm-svn: 290604 --- unittests/Support/DebugTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unittests/Support/DebugTest.cpp b/unittests/Support/DebugTest.cpp index ed228f5da15..7db91ff0d85 100644 --- a/unittests/Support/DebugTest.cpp +++ b/unittests/Support/DebugTest.cpp @@ -14,6 +14,7 @@ #include using namespace llvm; +#ifndef NDEBUG TEST(DebugTest, Basic) { std::string s1, s2; raw_string_ostream os1(s1), os2(s2); @@ -30,3 +31,4 @@ TEST(DebugTest, Basic) { DEBUG_WITH_TYPE("B", os2 << "B"); EXPECT_EQ("A", os2.str()); } +#endif