@@ -148,9 +148,7 @@ final class CachingBuildTests: XCTestCase {
148148 try withTemporaryDirectory { path in
149149 let main = path. appending ( component: " testCachingBuildJobs.swift " )
150150 try localFileSystem. writeFileContents ( main) {
151- $0 <<< " import C; "
152- $0 <<< " import E; "
153- $0 <<< " import G; "
151+ $0. send ( " import C;import E;import G; " )
154152 }
155153 let casPath = path. appending ( component: " cas " )
156154 let swiftModuleInterfacesPath : AbsolutePath =
@@ -278,9 +276,7 @@ final class CachingBuildTests: XCTestCase {
278276 try withTemporaryDirectory { path in
279277 let main = path. appending ( component: " testExplicitModuleVerifyInterfaceJobs.swift " )
280278 try localFileSystem. writeFileContents ( main) {
281- $0 <<< " import C; "
282- $0 <<< " import E; "
283- $0 <<< " import G; "
279+ $0. send ( " import C;import E;import G; " )
284280 }
285281
286282 let swiftModuleInterfacesPath : AbsolutePath =
@@ -427,9 +423,7 @@ final class CachingBuildTests: XCTestCase {
427423 try localFileSystem. createDirectory ( moduleCachePath)
428424 let main = path. appending ( component: " testCachingBuild.swift " )
429425 try localFileSystem. writeFileContents ( main) {
430- $0 <<< " import C; "
431- $0 <<< " import E; "
432- $0 <<< " import G; "
426+ $0. send ( " import C;import E;import G; " )
433427 }
434428
435429 let cHeadersPath : AbsolutePath =
@@ -477,17 +471,17 @@ final class CachingBuildTests: XCTestCase {
477471 let foo = path. appending ( component: " foo.swift " )
478472 let casPath = path. appending ( component: " cas " )
479473 try localFileSystem. writeFileContents ( foo) {
480- $0 <<< " extension Profiler { "
481- $0 <<< " public static let count: Int = 42 "
482- $0 <<< " } "
474+ $0. send ( " extension Profiler { " )
475+ $0. send ( " public static let count: Int = 42 " )
476+ $0. send ( " } " )
483477 }
484478 let fooHeader = path. appending ( component: " foo.h " )
485479 try localFileSystem. writeFileContents ( fooHeader) {
486- $0 <<< " struct Profiler { void* ptr; }; "
480+ $0. send ( " struct Profiler { void* ptr; }; " )
487481 }
488482 let main = path. appending ( component: " main.swift " )
489483 try localFileSystem. writeFileContents ( main) {
490- $0 <<< " import Foo "
484+ $0. send ( " import Foo " )
491485 }
492486 let sdkArgumentsForTesting = ( try ? Driver . sdkArgumentsForTesting ( ) ) ?? [ ]
493487
@@ -546,9 +540,7 @@ final class CachingBuildTests: XCTestCase {
546540 try withTemporaryDirectory { path in
547541 let main = path. appending ( component: " testDependencyScanning.swift " )
548542 try localFileSystem. writeFileContents ( main) {
549- $0 <<< " import C; "
550- $0 <<< " import E; "
551- $0 <<< " import G; "
543+ $0. send ( " import C;import E;import G; " )
552544 }
553545
554546 let cHeadersPath : AbsolutePath =
0 commit comments