From 49bc5690a39b09c60601c21349ee730aea9e5ca6 Mon Sep 17 00:00:00 2001 From: Leon Klingele Date: Mon, 4 Feb 2019 12:42:55 +0000 Subject: [PATCH] cmd/link: add missing error check in test Change-Id: I54998f1b7daa8f8db7a2007b4eb86e9789c03656 GitHub-Last-Rev: 97667ead6f62dad2af0d6b1f78deccef16417044 GitHub-Pull-Request: golang/go#30006 Reviewed-on: https://go-review.googlesource.com/c/160430 Reviewed-by: Bryan C. Mills Run-TryBot: Bryan C. Mills TryBot-Result: Gobot Gobot --- src/cmd/link/linkbig_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cmd/link/linkbig_test.go b/src/cmd/link/linkbig_test.go index 21208e86e40..78d2bc1afec 100644 --- a/src/cmd/link/linkbig_test.go +++ b/src/cmd/link/linkbig_test.go @@ -28,6 +28,9 @@ func TestLargeText(t *testing.T) { var w bytes.Buffer const FN = 4 tmpdir, err := ioutil.TempDir("", "bigtext") + if err != nil { + t.Fatalf("can't create temp directory: %v\n", err) + } defer os.RemoveAll(tmpdir)