@@ -148,9 +148,7 @@ final class CachingBuildTests: XCTestCase {
148
148
try withTemporaryDirectory { path in
149
149
let main = path. appending ( component: " testCachingBuildJobs.swift " )
150
150
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; " )
154
152
}
155
153
let casPath = path. appending ( component: " cas " )
156
154
let swiftModuleInterfacesPath : AbsolutePath =
@@ -278,9 +276,7 @@ final class CachingBuildTests: XCTestCase {
278
276
try withTemporaryDirectory { path in
279
277
let main = path. appending ( component: " testExplicitModuleVerifyInterfaceJobs.swift " )
280
278
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; " )
284
280
}
285
281
286
282
let swiftModuleInterfacesPath : AbsolutePath =
@@ -427,9 +423,7 @@ final class CachingBuildTests: XCTestCase {
427
423
try localFileSystem. createDirectory ( moduleCachePath)
428
424
let main = path. appending ( component: " testCachingBuild.swift " )
429
425
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; " )
433
427
}
434
428
435
429
let cHeadersPath : AbsolutePath =
@@ -477,17 +471,17 @@ final class CachingBuildTests: XCTestCase {
477
471
let foo = path. appending ( component: " foo.swift " )
478
472
let casPath = path. appending ( component: " cas " )
479
473
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 ( " } " )
483
477
}
484
478
let fooHeader = path. appending ( component: " foo.h " )
485
479
try localFileSystem. writeFileContents ( fooHeader) {
486
- $0 <<< " struct Profiler { void* ptr; }; "
480
+ $0. send ( " struct Profiler { void* ptr; }; " )
487
481
}
488
482
let main = path. appending ( component: " main.swift " )
489
483
try localFileSystem. writeFileContents ( main) {
490
- $0 <<< " import Foo "
484
+ $0. send ( " import Foo " )
491
485
}
492
486
let sdkArgumentsForTesting = ( try ? Driver . sdkArgumentsForTesting ( ) ) ?? [ ]
493
487
@@ -546,9 +540,7 @@ final class CachingBuildTests: XCTestCase {
546
540
try withTemporaryDirectory { path in
547
541
let main = path. appending ( component: " testDependencyScanning.swift " )
548
542
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; " )
552
544
}
553
545
554
546
let cHeadersPath : AbsolutePath =
0 commit comments