mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
16 lines
649 B
Plaintext
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
|