Skip to content

Commit 3ac8193

Browse files
authored
Fix console tests after removal of readline dependency (swiftlang#66)
1 parent c518817 commit 3ac8193

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Sources/SwiftBuild/SWBTerminal.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ func swbuild_repl() async throws -> Bool {
7676
break
7777
}
7878

79+
print(line)
7980
(shouldContinue, ok) = await swbuild_process_command(console: console, command: line)
8081
}
8182

Tests/SwiftBuildTests/ConsoleCommands/ServiceConsoleTests.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,7 @@ fileprivate struct ServiceConsoleTests {
3737
let output = String(decoding: data, as: UTF8.self)
3838

3939
// Verify there were no errors.
40-
#if os(Linux)
41-
// something with terminal echo is different on macOS vs Linux
4240
#expect(output == "swbuild> \n")
43-
#else
44-
#expect(output == String.newline)
45-
#endif
4641

4742
// Assert the tool exited successfully.
4843
await #expect(try promise.value == .exit(0))

0 commit comments

Comments
 (0)