Files
swift-mirror/test/ModuleInterface/swift_build_sdk_interfaces/compiler-crash-windows.test-sh
Saleem Abdulrasool e3548dd638 test: use -log-path for stderr access in ModuleInterface tests
The stderr handles seem to behave differently under Python 3.  Use the
`-log-path` option to capture the standard error output and validate the
output.
2020-07-09 17:19:55 +00:00

16 lines
649 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: %empty-directory(%t)
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 -log-path %t
RUN: %FileCheck %s < %t/Flat-Flat-err.txt
CHECK: Program arguments:
CHECK-SAME: -debug-crash-immediately
CHECK-SAME: {{.+}}.swiftinterface
REQUIRES: asserts