Skip to content

Commit 9ddb8ea

Browse files
prattmicgopherbot
authored andcommitted
os/signal: add missing newlines to TestTerminalSignal
For #37329. For #56233. Change-Id: Iafcddaddafd2d27fa5d535b57aaefec387f0b3f0 Reviewed-on: https://go-review.googlesource.com/c/go/+/443066 Run-TryBot: Michael Pratt <[email protected]> Auto-Submit: Michael Pratt <[email protected]> Reviewed-by: Bryan Mills <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent e612d21 commit 9ddb8ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/os/signal/signal_cgo_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func TestTerminalSignal(t *testing.T) {
9999
runStoppingChild()
100100
panic("unreachable")
101101
default:
102-
fmt.Fprintf(os.Stderr, "unknown subprocess level %s", lvl)
102+
fmt.Fprintf(os.Stderr, "unknown subprocess level %s\n", lvl)
103103
os.Exit(1)
104104
}
105105

@@ -307,7 +307,7 @@ func runSessionLeader(pause time.Duration) {
307307

308308
err := fn()
309309
if err != nil {
310-
fmt.Fprintf(os.Stderr, "session leader error: %v", err)
310+
fmt.Fprintf(os.Stderr, "session leader error: %v\n", err)
311311
cmd.Process.Kill()
312312
// Wait for exit below.
313313
}
@@ -330,7 +330,7 @@ func runStoppingChild() {
330330

331331
var b [1]byte
332332
if _, err := pty.Write(b[:]); err != nil {
333-
fmt.Fprintf(os.Stderr, "error writing byte to PTY: %v", err)
333+
fmt.Fprintf(os.Stderr, "error writing byte to PTY: %v\n", err)
334334
os.Exit(1)
335335
}
336336

0 commit comments

Comments
 (0)