From ac3914587036e2df3ccf2f081ce62f520d63c882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Thu, 27 Jul 2023 12:21:19 +0200 Subject: [PATCH] -more verbose output in test --- GetRuntimeAddresses/symbolyze/gdb_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GetRuntimeAddresses/symbolyze/gdb_test.go b/GetRuntimeAddresses/symbolyze/gdb_test.go index bf0fe72..b6cd373 100644 --- a/GetRuntimeAddresses/symbolyze/gdb_test.go +++ b/GetRuntimeAddresses/symbolyze/gdb_test.go @@ -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) } } }