[asterisk-commits] mnicholson: testsuite/asterisk/trunk r655 - in /asterisk/trunk/asttest/self-t...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 29 14:09:39 CDT 2010


Author: mnicholson
Date: Thu Jul 29 14:09:36 2010
New Revision: 655

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=655
Log:
Fix test_atexit self tests

Modified:
    asterisk/trunk/asttest/self-tests/test_atexit2/test.lua
    asterisk/trunk/asttest/self-tests/test_atexit3/test.lua

Modified: asterisk/trunk/asttest/self-tests/test_atexit2/test.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/self-tests/test_atexit2/test.lua?view=diff&rev=655&r1=654&r2=655
==============================================================================
--- asterisk/trunk/asttest/self-tests/test_atexit2/test.lua (original)
+++ asterisk/trunk/asttest/self-tests/test_atexit2/test.lua Thu Jul 29 14:09:36 2010
@@ -1,10 +1,10 @@
-function do_error()
+function do_error(result)
 	fail_if(result.result ~= "pass", "expected 'pass' here in do_error()")
 	print("I am going to cause an error")
 	this_will_cause_an_error()
 end
 
-function do_nothing()
+function do_nothing(result)
 	fail_if(result.result ~= "pass", "expected 'pass' here in do_nothing()")
 end
 

Modified: asterisk/trunk/asttest/self-tests/test_atexit3/test.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/self-tests/test_atexit3/test.lua?view=diff&rev=655&r1=654&r2=655
==============================================================================
--- asterisk/trunk/asttest/self-tests/test_atexit3/test.lua (original)
+++ asterisk/trunk/asttest/self-tests/test_atexit3/test.lua Thu Jul 29 14:09:36 2010
@@ -1,4 +1,4 @@
-function do_fail()
+function do_fail(result)
 	fail_if(result.result ~= "pass", "result in do_fail() was not 'pass'")
 	fail()
 end
@@ -8,7 +8,7 @@
 	pass()
 end
 
-function do_nothing()
+function do_nothing(result)
 	fail_if(result.result ~= "pass", "result in do_nothing() was not 'pass'")
 end
 




More information about the asterisk-commits mailing list