Skip to content

Commit 86d6e42

Browse files
authored
Merge pull request #29794 from CodaFi/crash-pad
Specialize a test for Windows
2 parents 74df872 + 12d542c commit 86d6e42

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This test is intentionally specialized on windows becauase not --crash behaves
2+
# differently there. The exit code from the crashing frontend invocations is
3+
# mapped to `-21` there, which lit's `not` along does not remap correctly.
4+
# See rdar://59397376
5+
REQUIRES: OS=windows-msvc
6+
7+
RUN: env SWIFT_EXEC=%swiftc_driver_plain not --crash %{python} %utils/swift_build_sdk_interfaces.py %mcp_opt -sdk %S/Inputs/mock-sdk/ -o %t/output -debug-crash-compiler 2>&1 | %FileCheck %s
8+
9+
CHECK: Program arguments:
10+
CHECK-SAME: -debug-crash-immediately
11+
CHECK-SAME: {{.+}}.swiftinterface
12+
13+
REQUIRES: asserts

test/ModuleInterface/swift_build_sdk_interfaces/compiler-crash.test-sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
REQUIRES: rdar59318361
1+
# For its Windows counterpart, see compiler-crash-windows.test-sh
2+
UNSUPPORTED: windows
23

34
RUN: not %swift_build_sdk_interfaces -sdk %S/Inputs/mock-sdk/ -o %t/output -debug-crash-compiler 2>&1 | %FileCheck %s
45

0 commit comments

Comments
 (0)