From cd7278b64a0399bf68f68c533013696aa84cf5cb Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Tue, 16 Jul 2024 09:49:09 -0400 Subject: [PATCH] Missing newline on error in `entryPoint()`. There's a missing newline when logging an error in `entryPoint()` which results in the command prompt appearing on the wrong line after the test process terminates (when using `swift test`). --- Sources/Testing/ABI/EntryPoints/EntryPoint.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Testing/ABI/EntryPoints/EntryPoint.swift b/Sources/Testing/ABI/EntryPoints/EntryPoint.swift index 6ed1bbe87..a832ef42d 100644 --- a/Sources/Testing/ABI/EntryPoints/EntryPoint.swift +++ b/Sources/Testing/ABI/EntryPoints/EntryPoint.swift @@ -116,7 +116,7 @@ func entryPoint(passing args: __CommandLineArguments_v0?, eventHandler: Event.Ha } } catch { #if !SWT_NO_FILE_IO - try? FileHandle.stderr.write(String(describing: error)) + try? FileHandle.stderr.write("\(error)\n") #endif exitCode.withLock { exitCode in