Skip to content

Commit 32278e4

Browse files
committed
Fix a test for Linux where bc is annoying
1 parent e577422 commit 32278e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/ProcessInvocationTests/ProcessInvocationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ final class ProcessInvocationTests : XCTestCase {
548548
/* LINUXASYNC STOP --------- */
549549

550550
let (fdRead, fdWrite) = try ProcessInvocation.unownedPipe()
551-
let invocation1 = ProcessInvocation("printf", "%s", "1+2", stdoutRedirect: .toFd(fdWrite, giveOwnership: true))
551+
let invocation1 = ProcessInvocation("printf", "%s\n", "1+2", stdoutRedirect: .toFd(fdWrite, giveOwnership: true))
552552
_ = try invocation1.invoke(outputHandler: { _, _, _ in })
553553
let invocation2 = ProcessInvocation("bc", stdinRedirect: .sendFromReader(FileDescriptorReader(stream: fdRead, bufferSize: 3, bufferSizeIncrement: 1)))
554554
let output = try await invocation2.invokeAndGetOutput()

0 commit comments

Comments
 (0)