File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 44REQUIRES: windows
55RUN: %cpp_compiler %S/UncaughtException.cpp -o %t-UncaughtException
66
7- RUN: not %run %t-UncaughtException 2>&1 | FileCheck %s
7+ # Clang will fail the test with 'deadly signal', but other compilers may fail with different error messages.
8+ # 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%}
810
9- CHECK: ERROR: libFuzzer: deadly signal
10- CHECK: Test unit written to ./crash
11+ CHECK-ERROR: ERROR: libFuzzer: deadly signal
12+ CHECK-MSVC: ERROR: libFuzzer: uncaught C++ exception
13+ CHECK-CRASH: Test unit written to ./crash
You can’t perform that action at this time.
0 commit comments