diff options
Diffstat (limited to 'llvm/unittests/ADT/StringMapTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/StringMapTest.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/unittests/ADT/StringMapTest.cpp b/llvm/unittests/ADT/StringMapTest.cpp index 25562d3..431b397 100644 --- a/llvm/unittests/ADT/StringMapTest.cpp +++ b/llvm/unittests/ADT/StringMapTest.cpp @@ -205,12 +205,9 @@ TEST_F(StringMapTest, CopyCtorTest) { EXPECT_EQ(5, Map2.lookup("funf")); } -TEST_F(StringMapTest, LookupOrTrapTest) { +TEST_F(StringMapTest, AtTest) { llvm::StringMap<int> Map; - // key not found on empty map - EXPECT_DEATH({ Map.at("a"); }, "StringMap::at failed due to a missing key"); - // keys both found and not found on non-empty map Map["a"] = 1; Map["b"] = 2; @@ -218,7 +215,6 @@ TEST_F(StringMapTest, LookupOrTrapTest) { EXPECT_EQ(1, Map.at("a")); EXPECT_EQ(2, Map.at("b")); EXPECT_EQ(3, Map.at("c")); - EXPECT_DEATH({ Map.at("d"); }, "StringMap::at failed due to a missing key"); } // A more complex iteration test. |