1
0
mirror of https://github.com/golang/go synced 2024-11-22 06:24:38 -07:00

a few more errors caught by the print checker

R=rsc
CC=golang-dev
https://golang.org/cl/3431046
This commit is contained in:
Rob Pike 2010-12-08 16:25:14 -05:00
parent 839abc2ea7
commit 70113b436e
3 changed files with 3 additions and 3 deletions

View File

@ -136,7 +136,7 @@ testLoop:
break break
} }
if hdr != nil || err != nil { if hdr != nil || err != nil {
t.Errorf("test %d: Unexpected entry or error: hdr=%v err=%v", i, err) t.Errorf("test %d: Unexpected entry or error: hdr=%v err=%v", i, hdr, err)
} }
f.Close() f.Close()
} }

View File

@ -141,7 +141,7 @@ testLoop:
} }
} }
if err := tw.Close(); err != nil { if err := tw.Close(); err != nil {
t.Errorf("test %d: Failed closing archive: %v", err) t.Errorf("test %d: Failed closing archive: %v", i, err)
continue testLoop continue testLoop
} }

View File

@ -196,6 +196,6 @@ func TestChangingArgs(t *testing.T) {
args := Args() args := Args()
if !*before || cmd != "subcmd" || !*after || len(args) != 1 || args[0] != "args" { if !*before || cmd != "subcmd" || !*after || len(args) != 1 || args[0] != "args" {
t.Fatal("expected true subcmd true [args] got %v %v %v %v", *before, cmd, *after, args) t.Fatalf("expected true subcmd true [args] got %v %v %v %v", *before, cmd, *after, args)
} }
} }