mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Wrap unit test death tests in GTEST_HAS_DEATH_TEST
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79218 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -172,6 +172,7 @@ TEST(APIntTest, fromString) {
|
||||
EXPECT_EQ(APInt(1, 1), APInt(1, "1", 16));
|
||||
}
|
||||
|
||||
#ifdef GTEST_HAS_DEATH_TEST
|
||||
TEST(APIntTest, StringDeath) {
|
||||
EXPECT_DEATH(APInt(0, "", 0), "bitwidth too small");
|
||||
EXPECT_DEATH(APInt(32, "", 0), "Radix should be 2, 8, 10, or 16!");
|
||||
@ -182,5 +183,6 @@ TEST(APIntTest, StringDeath) {
|
||||
EXPECT_DEATH(APInt(32, StringRef("1\02", 3), 10), "Invalid character in digit string");
|
||||
EXPECT_DEATH(APInt(32, "1L", 10), "Invalid character in digit string");
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user