aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQinkun Bao <qinkun@google.com>2025-06-28 00:55:09 +0000
committerQinkun Bao <qinkun@google.com>2025-06-28 00:55:09 +0000
commit5f1f38486438a3b9a2f8f5beb2dcee1a1a9dac21 (patch)
tree47828a44d26452f6e640fb6911f0c5496490fab4
parent32180cf9f9eb921a793bb208cf3bbfb1b86ee2ae (diff)
downloadllvm-users/qinkunbao/spr/fix-uncaught-exceptiontest.zip
llvm-users/qinkunbao/spr/fix-uncaught-exceptiontest.tar.gz
llvm-users/qinkunbao/spr/fix-uncaught-exceptiontest.tar.bz2
Created using spr 1.3.6
-rw-r--r--compiler-rt/test/fuzzer/uncaught-exception.test6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler-rt/test/fuzzer/uncaught-exception.test b/compiler-rt/test/fuzzer/uncaught-exception.test
index d1b98cf..337267f 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 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}}