mirror of
https://github.com/golang/go
synced 2024-11-17 20:04:47 -07:00
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 <mpratt@google.com> Auto-Submit: Michael Pratt <mpratt@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
e612d212c6
commit
9ddb8ea737
@ -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)
|
||||
}
|
||||
|
||||
@ -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.
|
||||
}
|
||||
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user