[compiler-rt] 72060f1 - Fix uncaught-exception.test. (#146181)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 27 19:00:02 PDT 2025
Author: Qinkun Bao
Date: 2025-06-27T21:59:58-04:00
New Revision: 72060f1cfd561d9712b249fc2e13203d527800d6
URL: https://github.com/llvm/llvm-project/commit/72060f1cfd561d9712b249fc2e13203d527800d6
DIFF: https://github.com/llvm/llvm-project/commit/72060f1cfd561d9712b249fc2e13203d527800d6.diff
LOG: Fix uncaught-exception.test. (#146181)
See https://github.com/llvm/llvm-project/pull/125924
I didn't test it as I don't have access to a windows machine.
Added:
Modified:
compiler-rt/test/fuzzer/uncaught-exception.test
Removed:
################################################################################
diff --git a/compiler-rt/test/fuzzer/uncaught-exception.test b/compiler-rt/test/fuzzer/uncaught-exception.test
index d1b98cfb7c74b..984001056f1d5 100644
--- a/compiler-rt/test/fuzzer/uncaught-exception.test
+++ b/compiler-rt/test/fuzzer/uncaught-exception.test
@@ -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
diff erent 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|uncaught C++ exception}}
More information about the llvm-commits
mailing list