summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/unittests/Support/ErrorTest.cpp3
1 files changed, 1 insertions, 2 deletions
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<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());
}
OpenPOWER on IntegriCloud