From e2215d1c9d5a848aea2f8564203d8760251a6076 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 13 Nov 2006 15:20:56 +0000 Subject: Force glibc to use new/delete to allocate memory and disable its internal pools for the unit tests, to make memory leak detection work (refs #3) --- infrastructure/makebuildenv.pl.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/makebuildenv.pl.in b/infrastructure/makebuildenv.pl.in index 41623bc2..75912ca1 100755 --- a/infrastructure/makebuildenv.pl.in +++ b/infrastructure/makebuildenv.pl.in @@ -422,9 +422,9 @@ __E close TESTFILE; } - writetestfile("$mod/_t", + writetestfile("$mod/_t", "GLIBCXX_FORCE_NEW=1 ". './test' . $platform_exe_ext . ' $1 $2 $3 $4 $5', $mod); - writetestfile("$mod/_t-gdb", + writetestfile("$mod/_t-gdb", "GLIBCXX_FORCE_NEW=1 ". 'gdb ./test' . $platform_exe_ext, $mod); } -- cgit v1.2.3