[asterisk-commits] mnicholson: testsuite/asterisk/trunk r419 - /asterisk/trunk/asttest/lib/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 22 14:19:52 CDT 2010


Author: mnicholson
Date: Tue Jun 22 14:19:48 2010
New Revision: 419

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=419
Log:
Remove test_result after reason_string because test_result is under reason_string on the stack.

Modified:
    asterisk/trunk/asttest/lib/testutils.c

Modified: asterisk/trunk/asttest/lib/testutils.c
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/lib/testutils.c?view=diff&rev=419&r1=418&r2=419
==============================================================================
--- asterisk/trunk/asttest/lib/testutils.c (original)
+++ asterisk/trunk/asttest/lib/testutils.c Tue Jun 22 14:19:48 2010
@@ -122,10 +122,10 @@
 			}
 		}
 
+		if (test_result)
+			lua_remove(L, test_result);
 		if (reason_string)
 			lua_remove(L, reason_string);
-		if (test_result)
-			lua_remove(L, test_result);
 
 		lua_pop(L, 1);
 	} else {




More information about the asterisk-commits mailing list