From f62b749ae2b323653085f78f896f660ee461bb41 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Tue, 11 Aug 2015 15:29:40 +1000 Subject: all: fix some vet-caught formatting errors, mostly but not only in tests Could go in 1.5, although not critical. See also #12107 Change-Id: I7f1608b58581d21df4db58f0db654fef79e33a90 Reviewed-on: https://go-review.googlesource.com/13481 Reviewed-by: Dave Cheney --- src/path/filepath/path_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/path/filepath/path_test.go') diff --git a/src/path/filepath/path_test.go b/src/path/filepath/path_test.go index 1c32e27a54..153a39829d 100644 --- a/src/path/filepath/path_test.go +++ b/src/path/filepath/path_test.go @@ -402,18 +402,18 @@ func mark(path string, info os.FileInfo, err error, errors *[]error, clear bool) func chtmpdir(t *testing.T) (restore func()) { oldwd, err := os.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 := os.Chdir(d); err != nil { - t.Fatal("chtmpdir: %v", err) + t.Fatalf("chtmpdir: %v", err) } return func() { if err := os.Chdir(oldwd); err != nil { - t.Fatal("chtmpdir: %v", err) + t.Fatalf("chtmpdir: %v", err) } os.RemoveAll(d) } -- cgit v1.3