diff options
Diffstat (limited to 'test/functional/eval/system_spec.lua')
-rw-r--r-- | test/functional/eval/system_spec.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/functional/eval/system_spec.lua b/test/functional/eval/system_spec.lua index 5cbf34365b..865a890acf 100644 --- a/test/functional/eval/system_spec.lua +++ b/test/functional/eval/system_spec.lua @@ -203,12 +203,15 @@ describe('system()', function() end) it('prints verbose information', function() + nvim('set_option', 'shell', 'fake_shell') + nvim('set_option', 'shellcmdflag', 'cmdflag') + screen:try_resize(72, 14) feed(':4verbose echo system("echo hi")<cr>') if iswin() then - screen:expect{any=[[Executing command: "'cmd.exe' '/s' '/c' '"echo hi"'"]]} + screen:expect{any=[[Executing command: "'fake_shell' 'cmdflag' '"echo hi"'"]]} else - screen:expect{any=[[Executing command: "'/[^']*sh' '%-c' 'echo hi'"]]} + screen:expect{any=[[Executing command: "'fake_shell' 'cmdflag' 'echo hi'"]]} end feed('<cr>') end) |