mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 12:01:35 +08:00
Fix: Use file path passed into test func
This commit is contained in:
@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user