[Support] Update Error unit test to remove implementation specific behaviour.

llvm-svn: 263610
This commit is contained in:
Lang Hames
2016-03-16 01:20:54 +00:00
parent f7f6d3e93f
commit 9fb8e1b2a5

View File

@@ -412,8 +412,7 @@ TEST(Error, CheckExpected) {
#ifndef NDEBUG
{
Expected<int> A = make_error<CustomError>(42);
EXPECT_DEATH(*A, "\\(!HasError && \"Cannot get value "
"when an error exists!\"\\)")
EXPECT_DEATH(*A, "!HasError && \"Cannot get value when an error exists!\"")
<< "Incorrect Expected error value";
consumeError(A.takeError());
}