Fix benchmark in DWARF line parser test (#737)

This commit is contained in:
Derek Parker 2017-02-13 13:24:54 -08:00 committed by Alessandro Arzilli
parent 74eadea71a
commit f97bceaf48

@ -115,10 +115,15 @@ func TestDebugLinePrologueParser(t *testing.T) {
func BenchmarkLineParser(b *testing.B) {
defer profile.Start(profile.MemProfile).Stop()
p, err := filepath.Abs("../../_fixtures/testnextprog")
p, err := filepath.Abs("../../../_fixtures/testnextprog")
if err != nil {
b.Fatal(err)
}
err = exec.Command("go", "build", "-gcflags=-N -l", "-o", p, p+".go").Run()
if err != nil {
b.Fatal("Could not compile test file", p, err)
}
defer os.Remove(p)
data := grabDebugLineSection(p, nil)