diff options
| author | Eugene Leviant <eleviant@accesssoftek.com> | 2016-12-27 11:07:53 +0000 |
|---|---|---|
| committer | Eugene Leviant <eleviant@accesssoftek.com> | 2016-12-27 11:07:53 +0000 |
| commit | c2f5408ef78e3ec8e339073128c41b7f77210fbc (patch) | |
| tree | 6458f43b2658f2356bb909558a946b059102b573 /llvm/unittests/Support/DebugTest.cpp | |
| parent | aa35167578cef55f2bdb78c14a662fffdf31bc51 (diff) | |
| download | bcm5719-llvm-c2f5408ef78e3ec8e339073128c41b7f77210fbc.tar.gz bcm5719-llvm-c2f5408ef78e3ec8e339073128c41b7f77210fbc.zip | |
Fix unit test in NDEBUG build
llvm-svn: 290604
Diffstat (limited to 'llvm/unittests/Support/DebugTest.cpp')
| -rw-r--r-- | llvm/unittests/Support/DebugTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/Support/DebugTest.cpp b/llvm/unittests/Support/DebugTest.cpp index ed228f5da15..7db91ff0d85 100644 --- a/llvm/unittests/Support/DebugTest.cpp +++ b/llvm/unittests/Support/DebugTest.cpp @@ -14,6 +14,7 @@ #include <string> 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 |

