]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
CI: Disable res_odbc if REF_DEBUG is requested.
authorCorey Farrell <git@cfware.com>
Wed, 15 Aug 2018 16:44:03 +0000 (12:44 -0400)
committerCorey Farrell <git@cfware.com>
Wed, 15 Aug 2018 16:46:46 +0000 (11:46 -0500)
This is for 13/15 only, res_odbc never unloads so it is impossible to do
REF_DEBUG testing with that module.

Change-Id: I2c1e32b80564e8fb08b6b5900ede6b5d304ebd10

tests/CI/buildAsterisk.sh

index 683b4bbd809c2b0704b67b6320289e1e9ef078a8..b3266bdac8eeaf67c2d3be344d8fc3ff980cbdaa 100755 (executable)
@@ -113,6 +113,13 @@ if [ $TESTED_ONLY -eq 1 ] ; then
        mod_disables+=" res_ael_share res_calendar res_config_ldap res_config_pgsql res_corosync"
        mod_disables+=" res_http_post res_pktccops res_rtp_multicast res_snmp res_xmpp"
 fi
+if [ $REF_DEBUG -eq 1 ] ; then
+       # res_odbc does not unload at shutdown, including it with REF_DEBUG testing would cause
+       # every test to fail due to that leak.
+       # Note: --ref-debug and --realtime cannot be used together in this version of Asterisk.
+       # To test for reference leaks with realtime usage you must test against Asterisk 16+.
+       mod_disables+=" res_odbc"
+fi
 [ "$BRANCH_NAME" == "master" ] && mod_disables+=" codec_opus codec_silk codec_g729a codec_siren7 codec_siren14"
 runner menuselect/menuselect `gen_mods disable $mod_disables` menuselect.makeopts