We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5378531 commit ed87628Copy full SHA for ed87628
Tests/SwiftDriverTests/SwiftDriverTests.swift
@@ -3552,12 +3552,11 @@ final class SwiftDriverTests: XCTestCase {
3552
3553
if driver.targetTriple.isMacOSX {
3554
let sdkIdx = try XCTUnwrap(job.commandLine.firstIndex(of: .flag("-sdk")))
3555
- let sdkPathOpt: VirtualPath? = switch job.commandLine[sdkIdx + 1] {
3556
- case .path(let path): path
3557
- default: nil
+ if case .path(let path) = job.commandLine[sdkIdx + 1] {
+ XCTAssertTrue(path.name.contains("MacOSX.platform"))
+ } else {
3558
+ XCTFail("Missing SDK path")
3559
}
- let sdkPath = try XCTUnwrap(sdkPathOpt)
3560
- XCTAssertTrue(sdkPath.name.contains("MacOSX.platform"))
3561
3562
3563
XCTAssertFalse(job.commandLine.contains(.flag("--")))
0 commit comments