Author: mjordan
Date: Fri Nov 14 15:51:22 2014
New Revision: 427932

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=427932
Log:
tests/test_cel: Unlock bridge on off nominal paths

If the test fails due to memory allocation errors, we may as well attempt to
unlock the bridge on the way out.
........

Merged revisions 427927 from http://svn.asterisk.org/svn/asterisk/branches/13

Modified:
    trunk/   (props changed)
    trunk/tests/test_cel.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-13-merged' - no diff available.

Modified: trunk/tests/test_cel.c
URL: 
http://svnview.digium.com/svn/asterisk/trunk/tests/test_cel.c?view=diff&rev=427932&r1=427931&r2=427932
==============================================================================
--- trunk/tests/test_cel.c (original)
+++ trunk/tests/test_cel.c Fri Nov 14 15:51:22 2014
@@ -1275,11 +1275,13 @@
        transfer_msg = ast_blind_transfer_message_create(1, chan_alice,
                        "transfer_extension", "transfer_context");
        if (!transfer_msg) {
+               ast_bridge_unlock(bridge);
                ast_test_status_update(test, "Failed to create transfer Stasis 
message\n");
                return AST_TEST_FAIL;
        }
        transfer_msg->bridge = ast_bridge_snapshot_create(bridge);
        if (!transfer_msg->bridge) {
+               ast_bridge_unlock(bridge);
                ast_test_status_update(test, "Failed to create bridge 
snapshot\n");
                return AST_TEST_FAIL;
        }


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

Reply via email to