[compiler-rt] Fix uncaught-exception.test. (PR #146190)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 27 19:11:47 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Qinkun Bao (qinkunbao)

<details>
<summary>Changes</summary>

See https://github.com/llvm/llvm-project/pull/125924
To match a literal plus sign, it must be escaped with a backslash (`\`).


---
Full diff: https://github.com/llvm/llvm-project/pull/146190.diff


1 Files Affected:

- (modified) compiler-rt/test/fuzzer/uncaught-exception.test (+1-1) 


``````````diff
diff --git a/compiler-rt/test/fuzzer/uncaught-exception.test b/compiler-rt/test/fuzzer/uncaught-exception.test
index 984001056f1d5..264bb5dc3a914 100644
--- a/compiler-rt/test/fuzzer/uncaught-exception.test
+++ b/compiler-rt/test/fuzzer/uncaught-exception.test
@@ -8,4 +8,4 @@ RUN: %cpp_compiler %S/UncaughtException.cpp -o %t-UncaughtException
 # For example, msvc fails with 'uncaught C++ exception'. So the error we check depends on the compiler target.
 RUN: not %run %t-UncaughtException 2>&1 | FileCheck %s
 
-CHECK: ERROR: libFuzzer: {{deadly signal|uncaught C++ exception}}
+CHECK: ERROR: libFuzzer: {{deadly signal|uncaught C\+\+ exception}}

``````````

</details>


https://github.com/llvm/llvm-project/pull/146190


More information about the llvm-commits mailing list