diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-01-21 17:04:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-21 17:04:39 +0100 |
commit | bd16e116ebb3026cc72006e1e5376236181ac1c7 (patch) | |
tree | a7f1e685a1d7b14a35d0ab0aac0f6c0d923808a3 | |
parent | 10864cd93920715dd7251fd160d6056135cebdaf (diff) | |
download | rneovim-bd16e116ebb3026cc72006e1e5376236181ac1c7.tar.gz rneovim-bd16e116ebb3026cc72006e1e5376236181ac1c7.tar.bz2 rneovim-bd16e116ebb3026cc72006e1e5376236181ac1c7.zip |
win: test: Enable jobstart() 'shell' test. (#5983)
-rw-r--r-- | test/functional/core/job_spec.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua index 38c2d4e9cc..6e9633465f 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -42,10 +42,12 @@ describe('jobs', function() end) it('uses &shell and &shellcmdflag if passed a string', function() - -- TODO: Windows: jobstart() does not inherit $VAR - if helpers.pending_win32(pending) then return end nvim('command', "let $VAR = 'abc'") - nvim('command', "let j = jobstart('echo $VAR', g:job_opts)") + if iswin() then + nvim('command', "let j = jobstart('echo $env:VAR', g:job_opts)") + else + nvim('command', "let j = jobstart('echo $VAR', g:job_opts)") + end eq({'notification', 'stdout', {0, {'abc', ''}}}, next_msg()) eq({'notification', 'exit', {0, 0}}, next_msg()) end) |