]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
CI: Disable binary modules when REF_DEBUG is enabled.
authorCorey Farrell <git@cfware.com>
Wed, 10 Oct 2018 07:54:08 +0000 (03:54 -0400)
committerCorey Farrell <git@cfware.com>
Wed, 10 Oct 2018 08:46:14 +0000 (04:46 -0400)
In Asterisk 13 binary modules are linked to the non-REF_DEBUG variants
of ao2 functions.  Cause false leaks to be reported when binary modules
are used.

Change-Id: I192b1b912ad20b6f46e51dcc0f6fcf2d6cef9e70

tests/CI/buildAsterisk.sh

index d9c86784340336af859b288c7cefea7119cf1ab3..30c9f0525812481757567c790f8549f6d47640fb 100755 (executable)
@@ -81,6 +81,12 @@ common_config_args+=" --enable-dev-mode"
 if [ $COVERAGE -eq 1 ] ; then
        common_config_args+=" --enable-coverage"
 fi
+if [ $REF_DEBUG -eq 1 ] ; then
+       # Binary modules are not compiled with REF_DEBUG in Asterisk 13.
+       # This doesn't break the ABI but these binary modules fail to
+       # record entries causing false leaks to be reported.
+       DISABLE_BINARY_MODULES=1
+fi
 if [ "$BRANCH_NAME" == "master" -o $DISABLE_BINARY_MODULES -eq 1 ] ; then
        common_config_args+=" --disable-binary-modules"
 fi