-more verbose output in test

This commit is contained in:
Özgür Kesim 2023-07-27 12:21:19 +02:00
parent 2723532319
commit ac39145870

View File

@ -75,7 +75,9 @@ func TestSimpleGDB(t *testing.T) {
if off2, ok := ourResults[pid]; !ok {
t.Fatalf("Scanner has no offset for pid %d", pid)
} 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)
}
}
}