From: Bryan C. Mills Date: Fri, 15 Feb 2019 23:07:49 +0000 (-0500) Subject: cmd/internal/obj/x86: fix issue19518_test in module mode X-Git-Tag: go1.13beta1~1458 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d7d3887e3e1cae524f1530fd0942f9a64d669de9;p=gostls13.git 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 TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/src/cmd/internal/obj/x86/issue19518_test.go b/src/cmd/internal/obj/x86/issue19518_test.go index fa2beb8aad..4a29285ff1 100644 --- a/src/cmd/internal/obj/x86/issue19518_test.go +++ b/src/cmd/internal/obj/x86/issue19518_test.go @@ -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)