mirror of
https://github.com/golang/go
synced 2024-11-22 01:04:40 -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:
parent
839abc2ea7
commit
70113b436e
@ -136,7 +136,7 @@ testLoop:
|
||||
break
|
||||
}
|
||||
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()
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ testLoop:
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
|
||||
|
@ -196,6 +196,6 @@ func TestChangingArgs(t *testing.T) {
|
||||
args := 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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user