@@ -2824,27 +2824,6 @@ final class SwiftDriverTests: XCTestCase {
2824
2824
2825
2825
}
2826
2826
2827
- func testWMOWithNonSourceInput( ) throws {
2828
- var driver1 = try Driver ( args: [
2829
- " swiftc " , " -whole-module-optimization " , " danger.o " , " foo.swift " , " bar.swift " , " wibble.swift " , " -module-name " , " Test " ,
2830
- " -driver-filelist-threshold=0 "
2831
- ] )
2832
- let plannedJobs = try driver1. planBuild ( ) . removingAutolinkExtractJobs ( )
2833
- XCTAssertEqual ( plannedJobs. count, 2 )
2834
- let compileJob = plannedJobs [ 0 ]
2835
- XCTAssertEqual ( compileJob. kind, . compile)
2836
- XCTAssert ( compileJob. commandLine. contains ( . flag( " -supplementary-output-file-map " ) ) )
2837
- let argIdx = try XCTUnwrap ( compileJob. commandLine. firstIndex ( where: { $0 == . flag( " -supplementary-output-file-map " ) } ) )
2838
- let supplOutputs = compileJob. commandLine [ argIdx+ 1 ]
2839
- guard case let . path( path) = supplOutputs,
2840
- case let . fileList( _, fileList) = path,
2841
- case let . outputFileMap( outFileMap) = fileList else {
2842
- throw StringError ( " Unexpected argument for output file map " )
2843
- }
2844
- let firstKey : String = try VirtualPath . lookup ( XCTUnwrap ( outFileMap. entries. keys. first) ) . description
2845
- XCTAssertEqual ( firstKey, " foo.swift " )
2846
- }
2847
-
2848
2827
func testDashDashPassingDownInput( ) throws {
2849
2828
do {
2850
2829
var driver = try Driver ( args: [ " swiftc " , " -module-name=ThisModule " , " -wmo " , " -num-threads " , " 4 " , " -emit-module " , " -o " , " test.swiftmodule " , " -- " , " main.swift " , " multi-threaded.swift " ] )
0 commit comments