mirror of
https://github.com/golang/go
synced 2024-09-18 15:32:18 +00:00
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:
parent
b006d38acc
commit
de486b24d1
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue