aboutsummaryrefslogtreecommitdiff
path: root/test/unit/os/shell_spec.lua
diff options
context:
space:
mode:
authorRuss Adams <r.adams@arca.com>2015-10-03 10:22:56 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-10-04 22:57:21 -0400
commit7be75a02917b40e5791e3f98d177f833a348df35 (patch)
treecfccf87224d98534ff60314dde7b670f87b93bd1 /test/unit/os/shell_spec.lua
parent5a9b2fc1ae4964a59f6e88487a24e29f6544ba64 (diff)
downloadrneovim-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.lua5
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)