1
0
mirror of https://github.com/golang/go synced 2024-11-17 02:24:42 -07:00

cmd/link: add missing error check in test

Change-Id: I54998f1b7daa8f8db7a2007b4eb86e9789c03656
GitHub-Last-Rev: 97667ead6f
GitHub-Pull-Request: golang/go#30006
Reviewed-on: https://go-review.googlesource.com/c/160430
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Leon Klingele 2019-02-04 12:42:55 +00:00 committed by Bryan C. Mills
parent b136b17a8c
commit 49bc5690a3

View File

@ -28,6 +28,9 @@ func TestLargeText(t *testing.T) {
var w bytes.Buffer var w bytes.Buffer
const FN = 4 const FN = 4
tmpdir, err := ioutil.TempDir("", "bigtext") tmpdir, err := ioutil.TempDir("", "bigtext")
if err != nil {
t.Fatalf("can't create temp directory: %v\n", err)
}
defer os.RemoveAll(tmpdir) defer os.RemoveAll(tmpdir)