cleanup failure message

This commit is contained in:
Derek Parker
2014-10-10 15:53:30 -05:00
parent 5d62780ec3
commit 24b4c42ed9

View File

@ -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)
}
})
}