-more verbose output in test
This commit is contained in:
parent
2723532319
commit
ac39145870
@ -75,7 +75,9 @@ func TestSimpleGDB(t *testing.T) {
|
|||||||
if off2, ok := ourResults[pid]; !ok {
|
if off2, ok := ourResults[pid]; !ok {
|
||||||
t.Fatalf("Scanner has no offset for pid %d", pid)
|
t.Fatalf("Scanner has no offset for pid %d", pid)
|
||||||
} else if off != off2 {
|
} else if off != off2 {
|
||||||
t.Fatalf("Scanner has found offset %d while gdb has found offset %d for pid %d", off2, off, pid)
|
t.Fatalf("Scanner has found offset %x while gdb has found offset %x for pid %d", off2, off, pid)
|
||||||
|
} else {
|
||||||
|
t.Logf("Scanner and gdb agree: pid %d at offset %x", pid, off)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user