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

Qinkun Bao via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 27 18:59:42 PDT 2025


================
@@ -6,8 +6,6 @@ RUN: %cpp_compiler %S/UncaughtException.cpp -o %t-UncaughtException
 
 # Clang will fail the test with 'deadly signal', but other compilers may fail with different error messages.
 # 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-prefixes=CHECK-CRASH,%if target={{.*-windows-msvc.*}} %{CHECK-MSVC%} %else %{CHECK-ERROR%}
+RUN: not %run %t-UncaughtException 2>&1 | FileCheck %s
 
-CHECK-ERROR: ERROR: libFuzzer: deadly signal
-CHECK-MSVC: ERROR: libFuzzer: uncaught C++ exception
-CHECK-CRASH: Test unit written to ./crash
+CHECK: {{==.*== ERROR: libFuzzer: deadly signal|==.*== ERROR: libFuzzer: uncaught C++ exception}} 
----------------
qinkunbao wrote:

Make sense. Done

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


More information about the llvm-commits mailing list