From 59d28ed072d687c63ad3bc2598c4407e2040a855 Mon Sep 17 00:00:00 2001 From: Owen Voorhees Date: Sun, 2 Feb 2025 17:21:01 -0800 Subject: [PATCH] Fix console tests after removal of readline dependency --- Sources/SwiftBuild/SWBTerminal.swift | 1 + .../ConsoleCommands/ServiceConsoleTests.swift | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Sources/SwiftBuild/SWBTerminal.swift b/Sources/SwiftBuild/SWBTerminal.swift index 101933f8..86e57e8f 100644 --- a/Sources/SwiftBuild/SWBTerminal.swift +++ b/Sources/SwiftBuild/SWBTerminal.swift @@ -76,6 +76,7 @@ func swbuild_repl() async throws -> Bool { break } + print(line) (shouldContinue, ok) = await swbuild_process_command(console: console, command: line) } diff --git a/Tests/SwiftBuildTests/ConsoleCommands/ServiceConsoleTests.swift b/Tests/SwiftBuildTests/ConsoleCommands/ServiceConsoleTests.swift index 8291d2be..2396bb6c 100644 --- a/Tests/SwiftBuildTests/ConsoleCommands/ServiceConsoleTests.swift +++ b/Tests/SwiftBuildTests/ConsoleCommands/ServiceConsoleTests.swift @@ -37,12 +37,7 @@ fileprivate struct ServiceConsoleTests { let output = String(decoding: data, as: UTF8.self) // Verify there were no errors. - #if os(Linux) - // something with terminal echo is different on macOS vs Linux #expect(output == "swbuild> \n") - #else - #expect(output == String.newline) - #endif // Assert the tool exited successfully. await #expect(try promise.value == .exit(0))