aboutsummaryrefslogtreecommitdiff
path: root/test/functional/shell/viml_system_spec.lua
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-10-28 14:11:15 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-10-28 14:11:32 -0300
commitc28adf15e6c2079c732bb77fb99c50b80a4d7fe2 (patch)
tree4b56616d9e54ea878ad74c71156e1529dc475d06 /test/functional/shell/viml_system_spec.lua
parent7797991ba50c0d76f7750cb821dca085a1f40c7e (diff)
parent7203796c545de87ee90ac9e5dd8232298685bb03 (diff)
downloadrneovim-c28adf15e6c2079c732bb77fb99c50b80a4d7fe2.tar.gz
rneovim-c28adf15e6c2079c732bb77fb99c50b80a4d7fe2.tar.bz2
rneovim-c28adf15e6c2079c732bb77fb99c50b80a4d7fe2.zip
Merge PR #1350 'valgrind/jobs: Fix invalid reads.'
Diffstat (limited to 'test/functional/shell/viml_system_spec.lua')
-rw-r--r--test/functional/shell/viml_system_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/shell/viml_system_spec.lua b/test/functional/shell/viml_system_spec.lua
index 9ed1016f73..a8bab8e26e 100644
--- a/test/functional/shell/viml_system_spec.lua
+++ b/test/functional/shell/viml_system_spec.lua
@@ -39,6 +39,8 @@ describe('system()', function()
eq(1, eval('v:shell_error'))
eval([[system("sh -c 'exit 5'")]])
eq(5, eval('v:shell_error'))
+ eval([[system('this-should-not-exist')]])
+ eq(127, eval('v:shell_error'))
end)
describe('passing no input', function()
@@ -117,6 +119,8 @@ describe('systemlist()', function()
eq(1, eval('v:shell_error'))
eval([[systemlist("sh -c 'exit 5'")]])
eq(5, eval('v:shell_error'))
+ eval([[systemlist('this-should-not-exist')]])
+ eq(127, eval('v:shell_error'))
end)
describe('passing string with linefeed characters as input', function()