aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/system_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-01-23 21:33:44 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-01-23 21:33:44 +0100
commit15119f943ab8c2d089f45969da06b6b58b4d0036 (patch)
tree24b934cd54405e661804608fc9e22a9925075a50 /test/functional/eval/system_spec.lua
parent6762c20af89b875bb35c1531e69640e10daddce0 (diff)
downloadrneovim-15119f943ab8c2d089f45969da06b6b58b4d0036.tar.gz
rneovim-15119f943ab8c2d089f45969da06b6b58b4d0036.tar.bz2
rneovim-15119f943ab8c2d089f45969da06b6b58b4d0036.zip
test: system(): fix test
For the test to be valid it should actually send input. ref #3529 ref #5241
Diffstat (limited to 'test/functional/eval/system_spec.lua')
-rw-r--r--test/functional/eval/system_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/eval/system_spec.lua b/test/functional/eval/system_spec.lua
index 4d1630042b..66d569416e 100644
--- a/test/functional/eval/system_spec.lua
+++ b/test/functional/eval/system_spec.lua
@@ -251,7 +251,7 @@ describe('system()', function()
end)
it('to backgrounded command does not crash', function()
-- This is indeterminate, just exercise the codepath. May get E5677.
- feed_command('call system("cat - &")')
+ feed_command('call system("cat - &", "input")')
local v_errnum = string.match(eval("v:errmsg"), "^E%d*:")
if v_errnum then
eq("E5677:", v_errnum)