summaryrefslogtreecommitdiff
path: root/src/trace/heap_test.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/trace/heap_test.zig')
-rw-r--r--src/trace/heap_test.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/trace/heap_test.zig b/src/trace/heap_test.zig
index aca05b0..f7919e2 100644
--- a/src/trace/heap_test.zig
+++ b/src/trace/heap_test.zig
@@ -68,6 +68,8 @@ fn record(arena: std.mem.Allocator, path: []const u8, argv: []const []const u8)
else => {},
};
try std.testing.expectEqual(@as(usize, 5), n);
+ // Where the symbol main_arena is known (the C library's own, or its separate debug info's), the arena is it.
+ if (dbg.syms.find("main_arena")) |sym| try std.testing.expectEqual(sym.addr, dbg.heap.?.glibc.?.arena);
try rec.close();
return stops;
}