[flang-commits] [PATCH] D104011: [Flang][Runtime][tests] Escape regex special character.

Michael Kruse via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Jun 10 09:30:37 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG0112f6ac7151: [Flang][Runtime][tests] Escape regex special character. (authored by Meinersbur).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104011/new/

https://reviews.llvm.org/D104011

Files:
  flang/unittests/RuntimeGTest/Format.cpp


Index: flang/unittests/RuntimeGTest/Format.cpp
===================================================================
--- flang/unittests/RuntimeGTest/Format.cpp
+++ flang/unittests/RuntimeGTest/Format.cpp
@@ -153,7 +153,7 @@
 
   ASSERT_DEATH(
       context.Report(/*edit=*/control.GetNextDataEdit(context, repeat)),
-      "FORMAT missing at least one ')'");
+      R"(FORMAT missing at least one '\)')");
 }
 
 TEST(InvalidFormatFailure, MissingPrecision) {
@@ -166,7 +166,7 @@
 
   ASSERT_DEATH(
       context.Report(/*edit=*/control.GetNextDataEdit(context, repeat)),
-      "Invalid FORMAT: integer expected at ')'");
+      R"(Invalid FORMAT: integer expected at '\)')");
 }
 
 TEST(InvalidFormatFailure, MissingFormatWidth) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104011.351200.patch
Type: text/x-patch
Size: 733 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210610/8f899e98/attachment.bin>


More information about the flang-commits mailing list