diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-01-23 21:33:44 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-23 21:33:44 +0100 |
commit | 15119f943ab8c2d089f45969da06b6b58b4d0036 (patch) | |
tree | 24b934cd54405e661804608fc9e22a9925075a50 /test/functional/eval/system_spec.lua | |
parent | 6762c20af89b875bb35c1531e69640e10daddce0 (diff) | |
download | rneovim-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.lua | 2 |
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) |