Skip to content

Commit fd53525

Browse files
authored
Fix dead code following #349. (#350)
Fix some new warnings from #349 that I missed locally. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 843863f commit fd53525

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

Sources/Testing/Running/EntryPoint.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ private import Foundation
5757
#if !SWT_NO_EXIT_TESTS
5858
if let exitTest = ExitTest.findInEnvironmentForSwiftPM() {
5959
await exitTest()
60-
return exitCode.rawValue
6160
}
6261
#endif
6362

Sources/Testing/Running/XCTestScaffold.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ public enum XCTestScaffold: Sendable {
163163
// Exit test handling.
164164
if let exitTest = ExitTest.findInEnvironmentForSwiftPM() {
165165
await exitTest()
166-
exit(EXIT_SUCCESS)
167166
}
168167
let typeName = String(reflecting: type(of: testCase.rawValue as Any))
169168
let functionName = if let parenIndex = functionName.lastIndex(of: "(") {

0 commit comments

Comments
 (0)