mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
test: os_system: spec for non-zero exit. #3419
This commit is contained in:
parent
5a9b2fc1ae
commit
7be75a0291
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user