Fixed wrong arguments to formatting functions

Change-Id: I11b4cf00ceeb4441b865e0de3f1674095d1c32d0
Reviewed-on: https://go-review.googlesource.com/7043
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
tnt 2015-03-07 00:48:26 +01:00 committed by Ian Lance Taylor
parent b006d38acc
commit de486b24d1
2 changed files with 5 additions and 5 deletions

View file

@ -584,18 +584,18 @@ func TestHardLink(t *testing.T) {
func chtmpdir(t *testing.T) func() {
oldwd, err := Getwd()
if err != nil {
t.Fatal("chtmpdir: %v", err)
t.Fatalf("chtmpdir: %v", err)
}
d, err := ioutil.TempDir("", "test")
if err != nil {
t.Fatal("chtmpdir: %v", err)
t.Fatalf("chtmpdir: %v", err)
}
if err := Chdir(d); err != nil {
t.Fatal("chtmpdir: %v", err)
t.Fatalf("chtmpdir: %v", err)
}
return func() {
if err := Chdir(oldwd); err != nil {
t.Fatal("chtmpdir: %v", err)
t.Fatalf("chtmpdir: %v", err)
}
RemoveAll(d)
}

View file

@ -221,7 +221,7 @@ func TestMkdirAllAtSlash(t *testing.T) {
if ok && (pathErr.Err == syscall.EACCES || isReadonlyError(pathErr.Err)) {
t.Skipf("could not create %v: %v", dir, err)
}
t.Fatalf(`MkdirAll "/_go_os_test/dir": %v, %s, %d`, err, pathErr.Err, pathErr.Err)
t.Fatalf(`MkdirAll "/_go_os_test/dir": %v, %s`, err, pathErr.Err)
}
RemoveAll("/_go_os_test")
}