From d7d3887e3e1cae524f1530fd0942f9a64d669de9 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Fri, 15 Feb 2019 18:07:49 -0500 Subject: [PATCH] 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 --- src/cmd/internal/obj/x86/issue19518_test.go | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.48.1