Skip to content

Commit 7da0a63

Browse files
authored
Fix a force unwrap in objCxxTargetLinksWithSwiftStdlibIfDepUsesSwiftCxxInterop test (#117)
1 parent 1b1bd81 commit 7da0a63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/SWBBuildSystemTests/LinkerTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ fileprivate struct LinkerTests: CoreBasedTests {
116116
stream <<< "int main() { return 0; }"
117117
}
118118
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") }))
121121
task.checkCommandLineMatches([StringPattern.and(StringPattern.prefix("-L"), StringPattern.suffix("usr/lib/swift/macosx"))])
122122
task.checkCommandLineContains(["-L/usr/lib/swift", "-lswiftCore"])
123123
task.checkCommandLineMatches([StringPattern.suffix("testTarget.app/Contents/MacOS/testTarget")])

0 commit comments

Comments
 (0)