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

View file

@ -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
}

View file

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