Skip to content

Commit c2914b6

Browse files
committed
Skip new tests that use Swift modules if the host’s SwiftPM doesn’t store .swiftmodule files in a subdirectory
This fixes a test failure when running tests using Xcode 15.3.
1 parent ec5c614 commit c2914b6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Tests/SourceKitLSPTests/PublishDiagnosticsTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ final class PublishDiagnosticsTests: XCTestCase {
154154

155155
func testDiagnosticUpdatedAfterDependentModuleIsBuilt() async throws {
156156
try SkipUnless.longTestsEnabled()
157+
try await SkipUnless.swiftpmStoresModulesInSubdirectory()
157158

158159
let project = try await SwiftPMTestProject(
159160
files: [

Tests/SourceKitLSPTests/PullDiagnosticsTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ final class PullDiagnosticsTests: XCTestCase {
182182

183183
func testDiagnosticUpdatedAfterDependentModuleIsBuilt() async throws {
184184
try SkipUnless.longTestsEnabled()
185+
try await SkipUnless.swiftpmStoresModulesInSubdirectory()
185186

186187
let project = try await SwiftPMTestProject(
187188
files: [

0 commit comments

Comments
 (0)