From 9fb8e1b2a5d54f205a2a5db3136ab8cdc246333c Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Wed, 16 Mar 2016 01:20:54 +0000 Subject: [Support] Update Error unit test to remove implementation specific behaviour. llvm-svn: 263610 --- llvm/unittests/Support/ErrorTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/unittests/Support') diff --git a/llvm/unittests/Support/ErrorTest.cpp b/llvm/unittests/Support/ErrorTest.cpp index 3fd5e093dad..ed3d1c1852c 100644 --- a/llvm/unittests/Support/ErrorTest.cpp +++ b/llvm/unittests/Support/ErrorTest.cpp @@ -412,8 +412,7 @@ TEST(Error, CheckExpected) { #ifndef NDEBUG { Expected A = make_error(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()); } -- cgit v1.2.3