[svn-commits] kmoore: branch 12 r409568 - in /branches/12: ./ main/astobj2.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Mar 4 10:53:30 CST 2014


Author: kmoore
Date: Tue Mar  4 10:53:28 2014
New Revision: 409568

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=409568
Log:
AO2: Add an assert for bad objects

This adds an assert that will only be active if Asterisk is compiled
with DO_CRASH and allows the testsuite to fail tests that would
otherwise require log file parsing.
........

Merged revisions 409566 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 409567 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    branches/12/   (props changed)
    branches/12/main/astobj2.c

Propchange: branches/12/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: branches/12/main/astobj2.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/astobj2.c?view=diff&rev=409568&r1=409567&r2=409568
==============================================================================
--- branches/12/main/astobj2.c (original)
+++ branches/12/main/astobj2.c Tue Mar  4 10:53:28 2014
@@ -167,6 +167,7 @@
 				"bad magic number for object %p. Object is likely destroyed.\n",
 				user_data);
 		}
+		ast_assert(0);
 		return NULL;
 	}
 




More information about the svn-commits mailing list