Specialize a test for Windows

An unfortunate workaround for rdar://59397376

Resolves rdar://59318361
This commit is contained in:
Robert Widmann
2020-02-12 12:44:19 -08:00
parent 24826e01bd
commit 12d542c24f
2 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
# This test is intentionally specialized on windows becauase not --crash behaves
# differently there. The exit code from the crashing frontend invocations is
# mapped to `-21` there, which lit's `not` along does not remap correctly.
# See rdar://59397376
REQUIRES: OS=windows-msvc
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
CHECK: Program arguments:
CHECK-SAME: -debug-crash-immediately
CHECK-SAME: {{.+}}.swiftinterface
REQUIRES: asserts