[Box Backup-commit] COMMIT r1146 - box/chris/merge/infrastructure

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Mon Nov 13 15:20:56 GMT 2006


Author: chris
Date: 2006-11-13 15:20:56 +0000 (Mon, 13 Nov 2006)
New Revision: 1146

Modified:
   box/chris/merge/infrastructure/makebuildenv.pl.in
Log:
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)


Modified: box/chris/merge/infrastructure/makebuildenv.pl.in
===================================================================
--- box/chris/merge/infrastructure/makebuildenv.pl.in	2006-11-13 15:15:23 UTC (rev 1145)
+++ box/chris/merge/infrastructure/makebuildenv.pl.in	2006-11-13 15:20:56 UTC (rev 1146)
@@ -422,9 +422,9 @@
 			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);
 		
 	}




More information about the Boxbackup-commit mailing list