diff options
author | Russ Adams <r.adams@arca.com> | 2015-10-03 10:22:56 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-10-04 22:57:21 -0400 |
commit | 7be75a02917b40e5791e3f98d177f833a348df35 (patch) | |
tree | cfccf87224d98534ff60314dde7b670f87b93bd1 /test/unit/os/shell_spec.lua | |
parent | 5a9b2fc1ae4964a59f6e88487a24e29f6544ba64 (diff) | |
download | rneovim-7be75a02917b40e5791e3f98d177f833a348df35.tar.gz rneovim-7be75a02917b40e5791e3f98d177f833a348df35.tar.bz2 rneovim-7be75a02917b40e5791e3f98d177f833a348df35.zip |
test: os_system: spec for non-zero exit. #3419
Diffstat (limited to 'test/unit/os/shell_spec.lua')
-rw-r--r-- | test/unit/os/shell_spec.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/os/shell_spec.lua b/test/unit/os/shell_spec.lua index 91123bfd58..20cfc17950 100644 --- a/test/unit/os/shell_spec.lua +++ b/test/unit/os/shell_spec.lua @@ -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) |