Skip to content

Lightpanda: the headless browser designed for AI and automation

skip test if not using glibc (e.g. tsan)

Karl Seguin3dc4791447c7
diff --git a/src/malloc_tuning.zig b/src/malloc_tuning.zig
index f2917f926..7cb3b46a4 100644
--- a/src/malloc_tuning.zig
+++ b/src/malloc_tuning.zig
@@ -102,7 +102,9 @@ test "malloc_tuning: glibc env overrides" {
}
test "malloc_tuning: trim returns the free memory below a live chunk" {
- if (comptime !is_glibc) {
+ // TSan replaces malloc/free with its own allocator: glibc's arenas, and
+ // so malloc_trim, never see the blocks.
+ if (comptime !is_glibc or builtin.sanitize_thread) {
return error.SkipZigTest;
}