Fix: Use file path passed into test func

This commit is contained in:
Derek Parker
2014-06-10 13:23:30 -05:00
parent 74bbd00dbd
commit f76ac8c32b

View File

@ -9,7 +9,7 @@ import (
) )
func grabDebugFrameSection(fp string, t *testing.T) []byte { func grabDebugFrameSection(fp string, t *testing.T) []byte {
p, err := filepath.Abs("../_fixtures/testprog") p, err := filepath.Abs(fp)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
@ -60,7 +60,7 @@ func TestParseString(t *testing.T) {
} }
func TestParse(t *testing.T) { func TestParse(t *testing.T) {
data := grabDebugFrameSection("../fixtures/testprog", t) data := grabDebugFrameSection("../_fixtures/testprog", t)
ce := Parse(data)[0] ce := Parse(data)[0]
if ce.Length != 16 { if ce.Length != 16 {