[Support] Update Error unit test to remove implementation specific behaviour.
llvm-svn: 263610
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user