aboutsummaryrefslogtreecommitdiff
path: root/src/path/filepath
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2015-08-11 15:29:40 +1000
committerRob Pike <r@golang.org>2015-08-21 05:37:36 +0000
commitf62b749ae2b323653085f78f896f660ee461bb41 (patch)
treeb67795c18f35dc316dc06d27d31486201c95570d /src/path/filepath
parent39e77bff85ddc9e862eccf0408968301955db977 (diff)
downloadgo-f62b749ae2b323653085f78f896f660ee461bb41.tar.xz
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 <dave@cheney.net>
Diffstat (limited to 'src/path/filepath')
-rw-r--r--src/path/filepath/path_test.go8
1 files changed, 4 insertions, 4 deletions
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)
}