diff options
| author | Jeffrey Yasskin <jyasskin@google.com> | 2010-03-17 01:18:45 +0000 |
|---|---|---|
| committer | Jeffrey Yasskin <jyasskin@google.com> | 2010-03-17 01:18:45 +0000 |
| commit | b5cd01335bfb25a8b1fea027a16651e3d1630733 (patch) | |
| tree | 724722a3e53e712573b8f56d9e772054348bee94 /llvm/unittests/ADT/APIntTest.cpp | |
| parent | 2ff380a43a1718ad961cef957d3b1d21bea18e69 (diff) | |
| download | bcm5719-llvm-b5cd01335bfb25a8b1fea027a16651e3d1630733.tar.gz bcm5719-llvm-b5cd01335bfb25a8b1fea027a16651e3d1630733.zip | |
Fix death tests in -Asserts builds.
llvm-svn: 98701
Diffstat (limited to 'llvm/unittests/ADT/APIntTest.cpp')
| -rw-r--r-- | llvm/unittests/ADT/APIntTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/APIntTest.cpp b/llvm/unittests/ADT/APIntTest.cpp index 0b13aa402ea..d08e86abaa7 100644 --- a/llvm/unittests/ADT/APIntTest.cpp +++ b/llvm/unittests/ADT/APIntTest.cpp @@ -328,6 +328,7 @@ TEST(APIntTest, Log2) { } #ifdef GTEST_HAS_DEATH_TEST +#ifndef NDEBUG TEST(APIntTest, StringDeath) { EXPECT_DEATH(APInt(0, "", 0), "Bitwidth too small"); EXPECT_DEATH(APInt(32, "", 0), "Invalid string length"); @@ -340,5 +341,6 @@ TEST(APIntTest, StringDeath) { EXPECT_DEATH(APInt(32, "1L", 10), "Invalid character in digit string"); } #endif +#endif } |

