Skip to content

Commit 73c26a1

Browse files
committed
Check that we get correct package version even if package manifest is invalid
Addresses https://github.com/swiftlang/sourcekit-lsp/pull/1846/files#r1856529041
1 parent ec461d6 commit 73c26a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/BuildSystemIntegrationTests/SwiftPMBuildSystemTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ final class SwiftPMBuildSystemTests: XCTestCase {
11561156
files: [
11571157
"pkg/Sources/lib/a.swift": "",
11581158
"pkg/Package.swift": """
1159-
// swift-tools-version: 4.2
1159+
// swift-tools-version:5.1
11601160
import PackageDescription
11611161
""",
11621162
]
@@ -1177,7 +1177,7 @@ final class SwiftPMBuildSystemTests: XCTestCase {
11771177
fallbackAfterTimeout: false
11781178
)
11791179
let compilerArgs = try XCTUnwrap(settings?.compilerArguments)
1180-
XCTAssert(compilerArgs.contains("-package-description-version"))
1180+
assertArgumentsContain("-package-description-version", "5.1.0", arguments: compilerArgs)
11811181
XCTAssert(compilerArgs.contains(try manifestURL.filePath))
11821182
}
11831183
}

0 commit comments

Comments
 (0)