Skip to content

Commit 72060f1

Browse files
authored
Fix uncaught-exception.test. (#146181)
See #125924 I didn't test it as I don't have access to a windows machine.
1 parent a64db49 commit 72060f1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

compiler-rt/test/fuzzer/uncaught-exception.test

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ RUN: %cpp_compiler %S/UncaughtException.cpp -o %t-UncaughtException
66

77
# Clang will fail the test with 'deadly signal', but other compilers may fail with different error messages.
88
# For example, msvc fails with 'uncaught C++ exception'. So the error we check depends on the compiler target.
9-
RUN: not %run %t-UncaughtException 2>&1 | FileCheck %s --check-prefixes=CHECK-CRASH,%if target={{.*-windows-msvc.*}} %{CHECK-MSVC%} %else %{CHECK-ERROR%}
9+
RUN: not %run %t-UncaughtException 2>&1 | FileCheck %s
1010

11-
CHECK-ERROR: ERROR: libFuzzer: deadly signal
12-
CHECK-MSVC: ERROR: libFuzzer: uncaught C++ exception
13-
CHECK-CRASH: Test unit written to ./crash
11+
CHECK: ERROR: libFuzzer: {{deadly signal|uncaught C++ exception}}

0 commit comments

Comments
 (0)