File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Tests/SWBBuildSystemTests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ fileprivate struct CodeGenerationToolTests: CoreBasedTests {
176176 break
177177 }
178178
179- let compileTask = compileTasks [ 0 ]
179+ let compileTask = try #require ( compileTasks. first , " No compile task found for target ' \( targetName ) '. " )
180180
181181 if targetName == " CoreFoo " {
182182 #expect( results. getTasks ( . matchRuleType( " CompileC " ) , . matchRuleItemBasename( " CoreFoo.m " ) , . matchTargetName( targetName) ) . count == 1 )
@@ -432,7 +432,7 @@ fileprivate struct CodeGenerationToolTests: CoreBasedTests {
432432 break
433433 }
434434
435- let compileTask = compileTasks [ 0 ]
435+ let compileTask = try #require ( compileTasks. first , " No compile task found for target ' \( targetName ) '. " )
436436
437437 if targetName == " CoreFoo " {
438438 #expect( results. getTasks ( . matchRuleType( " CompileC " ) , . matchRuleItemBasename( " CoreFoo.m " ) , . matchTargetName( targetName) ) . count == 1 )
@@ -642,7 +642,7 @@ fileprivate struct CodeGenerationToolTests: CoreBasedTests {
642642 break
643643 }
644644
645- let compileTask = compileTasks [ 0 ]
645+ let compileTask = try #require ( compileTasks. first , " No compile task found for target ' \( targetName ) '. " )
646646
647647 if targetName == " CoreFoo " {
648648 #expect( results. getTasks ( . matchRuleType( " CompileC " ) , . matchRuleItemBasename( " CoreFoo.m " ) , . matchTargetName( targetName) ) . count == 1 )
You can’t perform that action at this time.
0 commit comments