From f90fa07e87f4a99a81788af586836e24b4570fcb Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Fri, 12 Dec 2025 08:37:35 -0800 Subject: [PATCH] Add additional debug-level logging to test spawning This can help debug how swiftpm-testing-helper is exiting when debug-level logging is enabled. --- Sources/Commands/SwiftTestCommand.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Commands/SwiftTestCommand.swift b/Sources/Commands/SwiftTestCommand.swift index 5c0a2cb9412..75dff7f09dd 100644 --- a/Sources/Commands/SwiftTestCommand.swift +++ b/Sources/Commands/SwiftTestCommand.swift @@ -1047,6 +1047,7 @@ final class TestRunner { defer { self.cancellator.deregister(terminationKey) } try process.launch() let result = try process.waitUntilExit() + testObservabilityScope.emit(debug: "\(result.arguments[0]) exited with result: \(result.exitStatus)") switch result.exitStatus { case .terminated(code: 0): return .success