Skip to content

Commit

Permalink
PackageModelTests: fix warnings (#7421)
Browse files Browse the repository at this point in the history
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:)`
  • Loading branch information
mnaruse committed Mar 25, 2024
1 parent 9d48dc7 commit a809fb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/PackageModelTests/MinimumDeploymentTargetTests.swift
Expand Up @@ -22,7 +22,7 @@ class MinimumDeploymentTargetTests: XCTestCase {
try XCTSkipIf(true, "test is only supported on macOS")
#endif
let result = ProcessResult(arguments: [],
environment: [:],
environmentBlock: [:],
exitStatus: .terminated(code: 0),
output: "".asResult,
stderrOutput: "xcodebuild: error: SDK \"macosx\" cannot be located.".asResult)
Expand All @@ -36,7 +36,7 @@ class MinimumDeploymentTargetTests: XCTestCase {
try XCTSkipIf(true, "test is only supported on macOS")
#endif
let result = ProcessResult(arguments: [],
environment: [:],
environmentBlock: [:],
exitStatus: .terminated(code: 0),
output: "some string".asResult,
stderrOutput: "".asResult)
Expand All @@ -50,7 +50,7 @@ class MinimumDeploymentTargetTests: XCTestCase {
try XCTSkipIf(true, "test is only supported on macOS")
#endif
let result = ProcessResult(arguments: [],
environment: [:],
environmentBlock: [:],
exitStatus: .terminated(code: 0),
output: .failure(DummyError()),
stderrOutput: "".asResult)
Expand Down

0 comments on commit a809fb5

Please sign in to comment.