Skip to content

Commit d7d3887

Browse files
author
Bryan C. Mills
committed
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent fae44a2 commit d7d3887

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cmd/internal/obj/x86/issue19518_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ func objdumpOutput(t *testing.T) []byte {
4141
t.Fatal(err)
4242
}
4343
defer os.RemoveAll(tmpdir)
44+
err = ioutil.WriteFile(filepath.Join(tmpdir, "go.mod"), []byte("module issue19518\n"), 0666)
45+
if err != nil {
46+
t.Fatal(err)
47+
}
4448
tmpfile, err := os.Create(filepath.Join(tmpdir, "input.s"))
4549
if err != nil {
4650
t.Fatal(err)

0 commit comments

Comments
 (0)