mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
test: system(): fix test
For the test to be valid it should actually send input. ref #3529 ref #5241
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user