mirror of
https://github.com/go-delve/delve.git
synced 2025-11-02 12:59:01 +08:00
cleanup failure message
This commit is contained in:
@ -56,8 +56,9 @@ func TestFindReturnAddress(t *testing.T) {
|
|||||||
syscall.PtracePeekText(p.Pid, uintptr(addr), data)
|
syscall.PtracePeekText(p.Pid, uintptr(addr), data)
|
||||||
addr = binary.LittleEndian.Uint64(data)
|
addr = binary.LittleEndian.Uint64(data)
|
||||||
|
|
||||||
if addr != 0x400f04 {
|
expected := uint64(0x400f04)
|
||||||
t.Fatalf("return address not found correctly, expected %#v got %#v", uintptr(0x400f15), addr)
|
if addr != expected {
|
||||||
|
t.Fatalf("return address not found correctly, expected %#v got %#v", expected, addr)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user