Skip to content

Commit a809fb5

Browse files
authored
PackageModelTests: fix warnings (#7421)
Resolve warnings in `Tests/PackageModelTests/MinimumDeploymentTargetTests.swift` . ### Motivation: 3 warnings were displayed indicating that a deprecated function is being used and suggesting the use of an alternative function. ### Modifications: Following the suggestion, the warning was resolved. ### Result: The following warnings have been resolved: > `init(arguments:environment:exitStatus:output:stderrOutput:)` is deprecated: use `init(arguments:environmentBlock:exitStatus:output:stderrOutput:)`
1 parent 9d48dc7 commit a809fb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/PackageModelTests/MinimumDeploymentTargetTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class MinimumDeploymentTargetTests: XCTestCase {
2222
try XCTSkipIf(true, "test is only supported on macOS")
2323
#endif
2424
let result = ProcessResult(arguments: [],
25-
environment: [:],
25+
environmentBlock: [:],
2626
exitStatus: .terminated(code: 0),
2727
output: "".asResult,
2828
stderrOutput: "xcodebuild: error: SDK \"macosx\" cannot be located.".asResult)
@@ -36,7 +36,7 @@ class MinimumDeploymentTargetTests: XCTestCase {
3636
try XCTSkipIf(true, "test is only supported on macOS")
3737
#endif
3838
let result = ProcessResult(arguments: [],
39-
environment: [:],
39+
environmentBlock: [:],
4040
exitStatus: .terminated(code: 0),
4141
output: "some string".asResult,
4242
stderrOutput: "".asResult)
@@ -50,7 +50,7 @@ class MinimumDeploymentTargetTests: XCTestCase {
5050
try XCTSkipIf(true, "test is only supported on macOS")
5151
#endif
5252
let result = ProcessResult(arguments: [],
53-
environment: [:],
53+
environmentBlock: [:],
5454
exitStatus: .terminated(code: 0),
5555
output: .failure(DummyError()),
5656
stderrOutput: "".asResult)

0 commit comments

Comments
 (0)