mirror of
https://github.com/golang/go
synced 2024-11-23 16:30:06 -07:00
syscall: fix formatting calls in tests
Change-Id: I39a2c4101e6c59f4cd693cb0368f3567ea37ca5b Reviewed-on: https://go-review.googlesource.com/14255 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
36af087aef
commit
d5e32ebf54
@ -66,11 +66,11 @@ func TestLinuxDeathSignal(t *testing.T) {
|
||||
cmd.Env = []string{"GO_DEATHSIG_PARENT=1"}
|
||||
chldStdin, err := cmd.StdinPipe()
|
||||
if err != nil {
|
||||
t.Fatal("failed to create new stdin pipe: %v", err)
|
||||
t.Fatalf("failed to create new stdin pipe: %v", err)
|
||||
}
|
||||
chldStdout, err := cmd.StdoutPipe()
|
||||
if err != nil {
|
||||
t.Fatal("failed to create new stdout pipe: %v", err)
|
||||
t.Fatalf("failed to create new stdout pipe: %v", err)
|
||||
}
|
||||
cmd.Stderr = os.Stderr
|
||||
|
||||
@ -114,7 +114,7 @@ func deathSignalParent() {
|
||||
|
||||
err := cmd.Start()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "death signal parent error: %v\n")
|
||||
fmt.Fprintf(os.Stderr, "death signal parent error: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
cmd.Wait()
|
||||
|
Loading…
Reference in New Issue
Block a user