test: os_system: spec for non-zero exit. #3419

This commit is contained in:
Russ Adams 2015-10-03 10:22:56 -04:00 committed by Justin M. Keyes
parent 5a9b2fc1ae
commit 7be75a0291

View File

@ -68,5 +68,10 @@ describe('shell functions', function()
eq(input, output)
eq(0, status)
end)
it ('returns non-zero exit code', function()
local status, output = os_system('exit 2')
eq(2, status)
end)
end)
end)