]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/obj/x86: fix issue19518_test in module mode
authorBryan C. Mills <bcmills@google.com>
Fri, 15 Feb 2019 23:07:49 +0000 (18:07 -0500)
committerBryan C. Mills <bcmills@google.com>
Tue, 19 Feb 2019 20:53:10 +0000 (20:53 +0000)
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>
src/cmd/internal/obj/x86/issue19518_test.go

index fa2beb8aad39f88a58c5d34a0d3553b2f771529c..4a29285ff1c3169e98af885dca2db64d05def9ce 100644 (file)
@@ -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)