Skip to content

Commit

Permalink
cmd/internal/obj/x86: fix issue19518_test in module mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bryan C. Mills committed Feb 19, 2019
1 parent fae44a2 commit d7d3887
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cmd/internal/obj/x86/issue19518_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ func objdumpOutput(t *testing.T) []byte {
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)
Expand Down

0 comments on commit d7d3887

Please sign in to comment.