mmap_hook_test: don't printf early

The test includes override of
MallocHook_InitAtFirstAllocation_HeapLeakChecker which runs early
enough to trigger FreeBSD bug of not having nearly anything working
early.
This commit is contained in:
Aliaksey Kandratsenka 2024-02-07 19:20:05 -05:00
parent e7f576d9f1
commit 45a4ad8b70

View File

@ -49,7 +49,10 @@
#include <string.h> #include <string.h>
extern "C" int MallocHook_InitAtFirstAllocation_HeapLeakChecker() { extern "C" int MallocHook_InitAtFirstAllocation_HeapLeakChecker() {
printf("first mmap!\n"); // Effing, FreeBSD. Super-annoying with broken everything when it is
// early.
static char msg[] = "first mmap!\n";
WRITE_TO_STDERR(msg, sizeof(msg) - 1);
return 1; return 1;
} }