1
0
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:
Alexander Morozov 2015-09-03 13:24:58 -07:00 committed by Brad Fitzpatrick
parent 36af087aef
commit d5e32ebf54

View File

@ -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()