[all-commits] [llvm/llvm-project] 0112f6: [Flang][Runtime][tests] Escape regex special chara...
Michael Kruse via All-commits
all-commits at lists.llvm.org
Thu Jun 10 09:30:42 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0112f6ac71517de7767296eda1db26cc4bdb14ee
https://github.com/llvm/llvm-project/commit/0112f6ac71517de7767296eda1db26cc4bdb14ee
Author: Michael Kruse <llvm-project at meinersbur.de>
Date: 2021-06-10 (Thu, 10 Jun 2021)
Changed paths:
M flang/unittests/RuntimeGTest/Format.cpp
Log Message:
-----------
[Flang][Runtime][tests] Escape regex special character.
The second argument of `ASSERT_DEATH` describes a regular expression, in
which parentheses have special meaning. Matches of literal parentheses
need to be escaped.
Fixes failure of InvalidFormatFailure.ParenMismatch and
InvalidFormatFailure.ParenMismatch when gtest is compiled with MSVC's
regex implementation.
Reviewed By: awarzynski
Differential Revision: https://reviews.llvm.org/D104011
More information about the All-commits
mailing list