Commit de486b24 authored by tnt's avatar tnt Committed by Ian Lance Taylor

Fixed wrong arguments to formatting functions

Change-Id: I11b4cf00ceeb4441b865e0de3f1674095d1c32d0
Reviewed-on: https://go-review.googlesource.com/7043Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent b006d38a
......@@ -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")
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment