@@ -394,7 +394,7 @@ final class IncrementalCompilationTests: XCTestCase {
394
394
// FIXME: Expect failure in Linux in CI just as testIncrementalDiagnostics
395
395
func testAlwaysRebuildDependents( ) throws {
396
396
#if !os(Linux)
397
- tryInitial ( true )
397
+ try tryInitial ( true )
398
398
tryTouchingMainAlwaysRebuildDependents ( true )
399
399
#endif
400
400
}
@@ -406,14 +406,14 @@ final class IncrementalCompilationTests: XCTestCase {
406
406
/// Ensure that the mod date of the input comes back exactly the same via the build-record.
407
407
/// Otherwise the up-to-date calculation in `IncrementalCompilationState` will fail.
408
408
func testBuildRecordDateAccuracy( ) throws {
409
- tryInitial ( false )
409
+ try tryInitial ( false )
410
410
( 1 ... 10 ) . forEach { n in
411
411
tryNoChange ( true )
412
412
}
413
413
}
414
414
415
415
func testIncremental( checkDiagnostics: Bool ) throws {
416
- tryInitial ( checkDiagnostics)
416
+ try tryInitial ( checkDiagnostics)
417
417
#if true // sometimes want to skip for debugging
418
418
tryNoChange ( checkDiagnostics)
419
419
tryTouchingOther ( checkDiagnostics)
@@ -423,8 +423,8 @@ final class IncrementalCompilationTests: XCTestCase {
423
423
}
424
424
425
425
426
- func tryInitial( _ checkDiagnostics: Bool ) {
427
- try ! doABuild (
426
+ func tryInitial( _ checkDiagnostics: Bool ) throws {
427
+ try doABuild (
428
428
" initial " ,
429
429
checkDiagnostics: checkDiagnostics,
430
430
expectingRemarks: [
@@ -609,7 +609,7 @@ final class IncrementalCompilationTests: XCTestCase {
609
609
try ? driver. run ( jobs: jobs)
610
610
}
611
611
612
- let allArgs = args + extraArguments
612
+ let allArgs = try args + extraArguments + Driver . sdkArgumentsForTesting ( )
613
613
if checkDiagnostics {
614
614
try assertDriverDiagnostics ( args: allArgs) { driver, verifier in
615
615
verifier. forbidUnexpected ( . error, . warning, . note, . remark, . ignored)
0 commit comments