mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Manually expand out the few places where we had a `not ...` substitution where the substituted value was invoking `env` to alter the environment. This pattern is not portable and causes problems when using the integrated shell, such as on Windows. This was identified during the LLVM update. This additionally corrects the use of `not` to indicate that it is expecting a crashing failure. This was resulting in the Windows tests failing as `not` was not expecting a crashing failure.
9 lines
587 B
Plaintext
9 lines
587 B
Plaintext
RUN: env SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/swift_build_sdk_interfaces.py %mcp_opt 2>&1 | %FileCheck -check-prefix NO-OUTPUT %s
|
|
NO-OUTPUT: argument -o is required
|
|
|
|
RUN: env -u SDKROOT SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/swift_build_sdk_interfaces.py %mcp_opt -o %t 2>&1 | %FileCheck -check-prefix NO-SDK %s
|
|
NO-SDK: SDKROOT must be set
|
|
|
|
RUN: env SWIFT_EXEC=%swiftc_driver_plain not %{python} %utils/swift_build_sdk_interfaces.py %mcp_opt -o %t -sdk %S/nonexistent 2>&1 | %FileCheck -check-prefix BAD-SDK %s
|
|
BAD-SDK: invalid SDK: {{.+[/\\]nonexistent$}}
|