mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 20:20:40 +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)
|
||||
addr = binary.LittleEndian.Uint64(data)
|
||||
|
||||
if addr != 0x400f04 {
|
||||
t.Fatalf("return address not found correctly, expected %#v got %#v", uintptr(0x400f15), addr)
|
||||
expected := uint64(0x400f04)
|
||||
if addr != expected {
|
||||
t.Fatalf("return address not found correctly, expected %#v got %#v", expected, addr)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user