From 7f4420a222d4446647e96f2d1b2e6ea208b87b56 Mon Sep 17 00:00:00 2001 From: Corey Farrell Date: Wed, 15 Aug 2018 12:44:03 -0400 Subject: [PATCH] CI: Disable res_odbc if REF_DEBUG is requested. 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/CI/buildAsterisk.sh b/tests/CI/buildAsterisk.sh index 683b4bbd80..b3266bdac8 100755 --- a/tests/CI/buildAsterisk.sh +++ b/tests/CI/buildAsterisk.sh @@ -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