diff options
Diffstat (limited to 'src/cmd/objdump')
| -rw-r--r-- | src/cmd/objdump/objdump_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/objdump/objdump_test.go b/src/cmd/objdump/objdump_test.go index bbf942503a..fa6a1b9a68 100644 --- a/src/cmd/objdump/objdump_test.go +++ b/src/cmd/objdump/objdump_test.go @@ -297,8 +297,11 @@ func TestDisasmPIE(t *testing.T) { func TestDisasmGoobj(t *testing.T) { mustHaveDisasm(t) + importcfgfile := filepath.Join(tmp, "hello.importcfg") + testenv.WriteImportcfg(t, importcfgfile, nil) + hello := filepath.Join(tmp, "hello.o") - args := []string{"tool", "compile", "-p=main", "-o", hello} + args := []string{"tool", "compile", "-p=main", "-importcfg=" + importcfgfile, "-o", hello} args = append(args, "testdata/fmthello.go") out, err := exec.Command(testenv.GoToolPath(t), args...).CombinedOutput() if err != nil { |
