[asterisk-commits] mjordan: testsuite/asterisk/trunk r3262 - in /asterisk/trunk/tests/channels/S...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 7 21:50:00 CDT 2012


Author: mjordan
Date: Thu Jun  7 21:49:57 2012
New Revision: 3262

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3262
Log:
Add debugging on reactor stop

These two tests are exhibiting behavior that may be caused
by a deadlock.  Add some debugging when the reactor stops
to try and determine if that's the case.

Modified:
    asterisk/trunk/tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test
    asterisk/trunk/tests/channels/SIP/sip_blind_transfer/caller_refer_only/run-test

Modified: asterisk/trunk/tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test?view=diff&rev=3262&r1=3261&r2=3262
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test (original)
+++ asterisk/trunk/tests/channels/SIP/sip_blind_transfer/callee_refer_only/run-test Thu Jun  7 21:49:57 2012
@@ -175,6 +175,10 @@
         os.kill(self.pjb.pid, signal.SIGKILL)
         os.kill(self.pjc.pid, signal.SIGKILL)
 
+    def stop_asterisk(self):
+        self.ast[0].cli_exec("core show locks")   # get lock output in case of deadlock before tearing down.
+        self.ast[0].cli_exec("core show channels")
+
     def run(self):
         TestCase.run(self)
         self.create_ami_factory()
@@ -183,9 +187,7 @@
     # Run Transfer Test
     transfer_test = BlindTransfer()
 
-    transfer_test.start_asterisk()
     reactor.run()
-    transfer_test.stop_asterisk()
     if transfer_test.passed != True:
         return 1
     return 0

Modified: asterisk/trunk/tests/channels/SIP/sip_blind_transfer/caller_refer_only/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_blind_transfer/caller_refer_only/run-test?view=diff&rev=3262&r1=3261&r2=3262
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_blind_transfer/caller_refer_only/run-test (original)
+++ asterisk/trunk/tests/channels/SIP/sip_blind_transfer/caller_refer_only/run-test Thu Jun  7 21:49:57 2012
@@ -174,6 +174,10 @@
         os.kill(self.pjb.pid, signal.SIGKILL)
         os.kill(self.pjc.pid, signal.SIGKILL)
 
+    def stop_asterisk(self):
+        self.ast[0].cli_exec("core show locks")   # get lock output in case of deadlock before tearing down.
+        self.ast[0].cli_exec("core show channels")
+
     def run(self):
         TestCase.run(self)
         self.create_ami_factory()
@@ -182,9 +186,7 @@
     # Run Transfer Test
     transfer_test = BlindTransfer()
 
-    transfer_test.start_asterisk()
     reactor.run()
-    transfer_test.stop_asterisk()
     if transfer_test.passed != True:
         return 1
     return 0




More information about the asterisk-commits mailing list