From bd16e116ebb3026cc72006e1e5376236181ac1c7 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 21 Jan 2017 17:04:39 +0100 Subject: win: test: Enable jobstart() 'shell' test. (#5983) --- test/functional/core/job_spec.lua | 8 +++++--- 1 file 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) -- cgit