]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add libgmalloc and malloc_history to the test suite on OS X.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 6 Aug 2014 18:23:12 +0000 (18:23 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 6 Aug 2014 18:23:12 +0000 (18:23 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12084 a1ca3aef-8c08-0410-bb20-df032aa958be

test/run-stp-tests.sh

index 641e03b7807e44f53a87048a5ea4b0863654efe9..47e93b238dc38a0174fa5bf65709701996441f01 100755 (executable)
@@ -623,8 +623,7 @@ echo "    $VALGRIND ../scheduler/cupsd -c $BASE/cupsd.conf -f >$BASE/log/debug_l
 echo ""
 
 if test `uname` = Darwin -a "x$VALGRIND" = x; then
-       DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib
-       ../scheduler/cupsd -c $BASE/cupsd.conf -f >$BASE/log/debug_log 2>&1 &
+       DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib MallocStackLogging=1 ../scheduler/cupsd -c $BASE/cupsd.conf -f >$BASE/log/debug_log 2>&1 &
 else
        $VALGRIND ../scheduler/cupsd -c $BASE/cupsd.conf -f >$BASE/log/debug_log 2>&1 &
 fi
@@ -798,6 +797,13 @@ fi
 
 echo "</PRE>" >>$strfile
 
+if test `uname` = Darwin -a "x$VALGRIND" = x; then
+       #
+       # Log all allocations made by the scheduler...
+       #
+       malloc_history $cupsd -highWaterMark -callTree -showContent >$BASE/log/malloc_log
+fi
+
 #
 # Stop the server...
 #