diff options
author | Chris Wilson <chris+github@qwirx.com> | 2006-11-13 15:20:56 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2006-11-13 15:20:56 +0000 |
commit | e2215d1c9d5a848aea2f8564203d8760251a6076 (patch) | |
tree | a3776c6ce6707f4be72c89cd77342efb8353e4af /infrastructure/makebuildenv.pl.in | |
parent | dc10cd5a1cb2814ccd9ee0c6be118c70fcacdd75 (diff) |
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)
Diffstat (limited to 'infrastructure/makebuildenv.pl.in')
-rwxr-xr-x | infrastructure/makebuildenv.pl.in | 4 |
1 files 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); } |