@@ -309,46 +309,6 @@ final class SwiftPMBuildSystemTests: XCTestCase {
309
309
}
310
310
}
311
311
312
- func testDefaultSDKs( ) async throws {
313
- try await withTestScratchDir { tempDir in
314
- try FileManager . default. createFiles (
315
- root: tempDir,
316
- files: [
317
- " pkg/Sources/lib/a.swift " : " " ,
318
- " pkg/Package.swift " : """
319
- // swift-tools-version:6.0
320
- import PackageDescription
321
- let package = Package(
322
- name: " a " ,
323
- targets: [.target(name: " lib " )]
324
- )
325
- """ ,
326
- ]
327
- )
328
- let tr = ToolchainRegistry . forTesting
329
-
330
- let options = SourceKitLSPOptions . SwiftPMOptions (
331
- swiftSDKsDirectory: " /tmp/non_existent_sdks_dir " ,
332
- triple: " wasm32-unknown-wasi "
333
- )
334
-
335
- let packageRoot = tempDir. appendingPathComponent ( " pkg " )
336
- let swiftpmBuildSystem = try await SwiftPMBuildSystem (
337
- projectRoot: packageRoot,
338
- toolchainRegistry: tr,
339
- options: SourceKitLSPOptions ( swiftPM: options) ,
340
- connectionToSourceKitLSP: LocalConnection ( receiverName: " Dummy " ) ,
341
- testHooks: SwiftPMTestHooks ( )
342
- )
343
- let path = await swiftpmBuildSystem. destinationBuildParameters. toolchain. sdkRootPath
344
- XCTAssertEqual (
345
- path? . components. suffix ( 3 ) ,
346
- [ " usr " , " share " , " wasi-sysroot " ] ,
347
- " SwiftPMBuildSystem should share default SDK derivation logic with libSwiftPM "
348
- )
349
- }
350
- }
351
-
352
312
func testManifestArgs( ) async throws {
353
313
try await withTestScratchDir { tempDir in
354
314
try FileManager . default. createFiles (
0 commit comments