Files
swift-mirror/test/ModuleInterface/swift_build_sdk_interfaces/compiler-crash-windows.test-sh
Robert Widmann 12d542c24f Specialize a test for Windows
An unfortunate workaround for rdar://59397376

Resolves rdar://59318361
2020-02-12 12:45:43 -08:00

14 lines
589 B
Plaintext

# 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