aboutsummaryrefslogtreecommitdiff
path: root/src/io
diff options
context:
space:
mode:
authorLars Lehtonen <lars.lehtonen@gmail.com>2019-11-04 16:33:31 -0800
committerIan Lance Taylor <iant@golang.org>2019-11-05 03:27:26 +0000
commita866b48e4a3cb0c034cb98401e654317023188d9 (patch)
treea9fe57f7575dc4d77576392d88379b9b78a905ef /src/io
parent4a7ed1fab766a7a908e2cb20294e43b43ce7cf6c (diff)
downloadgo-a866b48e4a3cb0c034cb98401e654317023188d9.tar.gz
go-a866b48e4a3cb0c034cb98401e654317023188d9.zip
io/ioutil: Fix dropped test error
Change-Id: I9cfaba4f1af23ab67627bf496739311e4d1984c3 Reviewed-on: https://go-review.googlesource.com/c/go/+/205245 Reviewed-by: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/io')
-rw-r--r--src/io/ioutil/ioutil_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/io/ioutil/ioutil_test.go b/src/io/ioutil/ioutil_test.go
index 4945c65445..ef3c6d7975 100644
--- a/src/io/ioutil/ioutil_test.go
+++ b/src/io/ioutil/ioutil_test.go
@@ -72,6 +72,9 @@ func TestReadOnlyWriteFile(t *testing.T) {
// We don't want to use TempFile directly, since that opens a file for us as 0600.
tempDir, err := TempDir("", t.Name())
+ if err != nil {
+ t.Fatalf("TempDir %s: %v", t.Name(), err)
+ }
defer os.RemoveAll(tempDir)
filename := filepath.Join(tempDir, "blurp.txt")