[asterisk-commits] mnicholson: branch mnicholson/asttest r247898 - /team/mnicholson/asttest/astt...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Feb 19 09:27:08 CST 2010


Author: mnicholson
Date: Fri Feb 19 09:27:05 2010
New Revision: 247898

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=247898
Log:
Further enhancements to 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=247898&r1=247897&r2=247898
==============================================================================
--- 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:27:05 2010
@@ -8,8 +8,10 @@
 print(res)
 print(err)
 
-if (res == nil) then
-	fail("Error running asterisk: " .. err)
+if res == nil then
+	fail("error running asterisk: " .. err)
+elseif res ~= 0 then
+	fail("asterisk exited with status " .. res)
 end
 
 pass("asterisk exited with status " .. res)




More information about the asterisk-commits mailing list