Skip to content

Commit

Permalink
Merge pull request swiftlang#1767 from ahoppen/no-isdbtestsupport
Browse files Browse the repository at this point in the history
Remove dependency on ISDBTestSupport
  • Loading branch information
ahoppen authored Oct 17, 2024
2 parents 5eff39c + ee1fc93 commit c71471a
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 12 deletions.
2 changes: 0 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ let package = Package(
"SourceKitLSP",
"SwiftExtensions",
"ToolchainRegistry",
.product(name: "ISDBTestSupport", package: "indexstore-db"),
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
],
resources: [.copy("INPUTS")],
Expand Down Expand Up @@ -384,7 +383,6 @@ let package = Package(
"SourceKitLSP",
"ToolchainRegistry",
.product(name: "IndexStoreDB", package: "indexstore-db"),
.product(name: "ISDBTestSupport", package: "indexstore-db"),
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
// Depend on `SwiftCompilerPlugin` and `SwiftSyntaxMacros` so the modules are built before running tests and can
// be used by test cases that test macros (see `SwiftPMTestProject.macroPackageManifest`)
Expand Down
4 changes: 2 additions & 2 deletions Sources/SKTestSupport/BuildServerTestProject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
//===----------------------------------------------------------------------===//

import Foundation
import ISDBTestSupport
import XCTest

fileprivate let sdkArgs =
Expand All @@ -37,7 +36,8 @@ private let skTestSupportInputsDirectory: URL = {
resources.deleteLastPathComponent()
}
#else
let resources = XCTestCase.productsDirectory
let resources =
productsDirectory
.appendingPathComponent("SourceKitLSP_SKTestSupport.resources")
#endif
guard FileManager.default.fileExists(atPath: resources.path) else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import BuildServerProtocol
import BuildSystemIntegration
import Foundation
import ISDBTestSupport
import LanguageServerProtocol
import SKSupport
import SKTestSupport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import BuildServerProtocol
import BuildSystemIntegration
import Foundation
import ISDBTestSupport
import LanguageServerProtocol
import SKSupport
import SKTestSupport
Expand Down
1 change: 0 additions & 1 deletion Tests/SourceKitDTests/CrashRecoveryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
//
//===----------------------------------------------------------------------===//

import ISDBTestSupport
import LanguageServerProtocol
import SKLogging
import SKSupport
Expand Down
1 change: 0 additions & 1 deletion Tests/SourceKitDTests/SourceKitDTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import Csourcekitd
import Foundation
import ISDBTestSupport
import LanguageServerProtocol
import SKSupport
import SKTestSupport
Expand Down
1 change: 0 additions & 1 deletion Tests/SourceKitLSPTests/CallHierarchyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
//
//===----------------------------------------------------------------------===//

import ISDBTestSupport
import LanguageServerProtocol
import SKTestSupport
import TSCBasic
Expand Down
1 change: 0 additions & 1 deletion Tests/SourceKitLSPTests/ImplementationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
//
//===----------------------------------------------------------------------===//

import ISDBTestSupport
import LanguageServerProtocol
import SKTestSupport
import TSCBasic
Expand Down
1 change: 0 additions & 1 deletion Tests/SourceKitLSPTests/SwiftInterfaceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
//===----------------------------------------------------------------------===//

import Foundation
import ISDBTestSupport
import LanguageServerProtocol
import SKLogging
import SKSupport
Expand Down
1 change: 0 additions & 1 deletion Tests/SourceKitLSPTests/TypeHierarchyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
//
//===----------------------------------------------------------------------===//

import ISDBTestSupport
import LanguageServerProtocol
import SKTestSupport
import TSCBasic
Expand Down

0 comments on commit c71471a

Please sign in to comment.