[svn-commits] mnicholson: branch mnicholson/asttest r247897 - /team/mnicholson/asttest/astt...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Feb 19 09:23:46 CST 2010
Author: mnicholson
Date: Fri Feb 19 09:23:43 2010
New Revision: 247897
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=247897
Log:
Enhanced the spawn_asterisk test.
Modified:
team/mnicholson/asttest/asttest/self-tests/spawn_asterisk/test.lua
Modified: team/mnicholson/asttest/asttest/self-tests/spawn_asterisk/test.lua
URL: http://svnview.digium.com/svn/asterisk/team/mnicholson/asttest/asttest/self-tests/spawn_asterisk/test.lua?view=diff&rev=247897&r1=247896&r2=247897
==============================================================================
--- team/mnicholson/asttest/asttest/self-tests/spawn_asterisk/test.lua (original)
+++ team/mnicholson/asttest/asttest/self-tests/spawn_asterisk/test.lua Fri Feb 19 09:23:43 2010
@@ -2,4 +2,15 @@
a = ast.new()
a:spawn()
+posix.sleep(1)
+res, err = a:term()
+print(res)
+print(err)
+
+if (res == nil) then
+ fail("Error running asterisk: " .. err)
+end
+
+pass("asterisk exited with status " .. res)
+
More information about the svn-commits
mailing list