commit | d7d3887e3e1cae524f1530fd0942f9a64d669de9 | [log] [tgz] |
---|---|---|
author | Bryan C. Mills <bcmills@google.com> | Fri Feb 15 18:07:49 2019 -0500 |
committer | Bryan C. Mills <bcmills@google.com> | Tue Feb 19 20:53:10 2019 +0000 |
tree | 5e236ea1fb1c20c1b2fce9bf17b46527a8975f54 | |
parent | fae44a2be350940c3b29919e274e9a7e63f22df7 [diff] |
cmd/internal/obj/x86: fix issue19518_test in module mode Updates #30228 Change-Id: I6a38269f322d906702921b3879ff48c8a96ab511 Reviewed-on: https://go-review.googlesource.com/c/162831 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
diff --git a/src/cmd/internal/obj/x86/issue19518_test.go b/src/cmd/internal/obj/x86/issue19518_test.go index fa2beb8..4a29285 100644 --- a/src/cmd/internal/obj/x86/issue19518_test.go +++ b/src/cmd/internal/obj/x86/issue19518_test.go
@@ -41,6 +41,10 @@ t.Fatal(err) } defer os.RemoveAll(tmpdir) + err = ioutil.WriteFile(filepath.Join(tmpdir, "go.mod"), []byte("module issue19518\n"), 0666) + if err != nil { + t.Fatal(err) + } tmpfile, err := os.Create(filepath.Join(tmpdir, "input.s")) if err != nil { t.Fatal(err)