aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ErrorTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/Support/ErrorTest.cpp')
-rw-r--r--llvm/unittests/Support/ErrorTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/unittests/Support/ErrorTest.cpp b/llvm/unittests/Support/ErrorTest.cpp
index a762cf0..9f22892 100644
--- a/llvm/unittests/Support/ErrorTest.cpp
+++ b/llvm/unittests/Support/ErrorTest.cpp
@@ -386,7 +386,8 @@ TEST(Error, FailureToHandle) {
});
};
- EXPECT_DEATH(FailToHandle(), "Program aborted due to an unhandled Error:")
+ EXPECT_DEATH(FailToHandle(),
+ "Failure value returned from cantFail wrapped call")
<< "Unhandled Error in handleAllErrors call did not cause an "
"abort()";
}
@@ -405,7 +406,7 @@ TEST(Error, FailureFromHandler) {
};
EXPECT_DEATH(ReturnErrorFromHandler(),
- "Program aborted due to an unhandled Error:")
+ "Failure value returned from cantFail wrapped call")
<< " Error returned from handler in handleAllErrors call did not "
"cause abort()";
}