Skip to content

Commit

Permalink
os/signal: add missing newlines to TestTerminalSignal
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
prattmic authored and gopherbot committed Oct 14, 2022
1 parent e612d21 commit 9ddb8ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/os/signal/signal_cgo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func TestTerminalSignal(t *testing.T) {
runStoppingChild()
panic("unreachable")
default:
fmt.Fprintf(os.Stderr, "unknown subprocess level %s", lvl)
fmt.Fprintf(os.Stderr, "unknown subprocess level %s\n", lvl)
os.Exit(1)
}

Expand Down Expand Up @@ -307,7 +307,7 @@ func runSessionLeader(pause time.Duration) {

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

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

Expand Down

0 comments on commit 9ddb8ea

Please sign in to comment.