File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Tests/SWBBuildSystemTests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -116,8 +116,8 @@ fileprivate struct LinkerTests: CoreBasedTests {
116
116
stream <<< " int main() { return 0; } "
117
117
}
118
118
try await tester. checkBuild ( ) { results in
119
- results. checkTasks ( . matchRuleType( " Ld " ) ) { tasks in
120
- let task = tasks. first ( where: { $0. outputPaths [ 0 ] . ends ( with: " testTarget " ) } ) !
119
+ try results. checkTasks ( . matchRuleType( " Ld " ) ) { tasks in
120
+ let task = try #require ( tasks. first ( where: { $0. outputPaths [ 0 ] . ends ( with: " testTarget " ) } ) )
121
121
task. checkCommandLineMatches ( [ StringPattern . and ( StringPattern . prefix ( " -L " ) , StringPattern . suffix ( " usr/lib/swift/macosx " ) ) ] )
122
122
task. checkCommandLineContains ( [ " -L/usr/lib/swift " , " -lswiftCore " ] )
123
123
task. checkCommandLineMatches ( [ StringPattern . suffix ( " testTarget.app/Contents/MacOS/testTarget " ) ] )
You can’t perform that action at this time.
0 commit comments