]> git.saurik.com Git - apt.git/commitdiff
set MALLOC_CHECK_ and MALLOC_PERTURB_ for testcases
authorDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 15 Aug 2013 14:45:09 +0000 (16:45 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 15 Aug 2013 15:39:24 +0000 (17:39 +0200)
In bugreport deb:719629 Paul Wise mentions both to enable some malloc
checks and as more testing can't hurt we enable both for all testcases.

Git-Dch: Ignore

test/integration/framework
test/libapt/run-tests

index 72c899e325522449a1fe05e63a6df3e8669ce47e..54d35fef80c8326a726171a80ed4e682bc4f6942 100644 (file)
@@ -88,11 +88,11 @@ msgdone() {
 runapt() {
        msgdebug "Executing: ${CCMD}$*${CDEBUG} "
        if [ -f ./aptconfig.conf ]; then
 runapt() {
        msgdebug "Executing: ${CCMD}$*${CDEBUG} "
        if [ -f ./aptconfig.conf ]; then
-               APT_CONFIG=aptconfig.conf LD_LIBRARY_PATH=${BUILDDIRECTORY} ${BUILDDIRECTORY}/$*
-        elif [ -f ../aptconfig.conf ]; then
-                APT_CONFIG=../aptconfig.conf LD_LIBRARY_PATH=${BUILDDIRECTORY} ${BUILDDIRECTORY}/$*
+               MALLOC_PERTURB_=21 MALLOC_CHECK_=2 APT_CONFIG=aptconfig.conf LD_LIBRARY_PATH=${BUILDDIRECTORY} ${BUILDDIRECTORY}/$*
+       elif [ -f ../aptconfig.conf ]; then
+               MALLOC_PERTURB_=21 MALLOC_CHECK_=2 APT_CONFIG=../aptconfig.conf LD_LIBRARY_PATH=${BUILDDIRECTORY} ${BUILDDIRECTORY}/$*
        else
        else
-               LD_LIBRARY_PATH=${BUILDDIRECTORY} ${BUILDDIRECTORY}/$*
+               MALLOC_PERTURB_=21 MALLOC_CHECK_=2 LD_LIBRARY_PATH=${BUILDDIRECTORY} ${BUILDDIRECTORY}/$*
        fi
 }
 aptconfig() { runapt apt-config $*; }
        fi
 }
 aptconfig() { runapt apt-config $*; }
index 7646630200f563996f4e3a38dd3d68b24aa5f055..a056f31f98d1bc4a83344f80bdfc4abb4df77306 100755 (executable)
@@ -111,8 +111,8 @@ do
        fi
 
        echo -n "Testing with ${NAME} "
        fi
 
        echo -n "Testing with ${NAME} "
-       if LD_LIBRARY_PATH=${LDPATH} ${testapp} ${tmppath} ; then
-               echo "$TESTOKAY"
+       if MALLOC_PERTURB_=21 MALLOC_CHECK_=2 LD_LIBRARY_PATH=${LDPATH} ${testapp} ${tmppath} ; then
+               echo "$TESTOKAY"
        else
                echo "$TESTFAIL"
                EXIT_CODE=1
        else
                echo "$TESTFAIL"
                EXIT_CODE=1