diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2018-01-06 17:52:14 +0100 | 
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-06 17:52:14 +0100 | 
| commit | 4fedad6c5b819fa91d4073c86d2d687e6c4d5ea4 (patch) | |
| tree | db49b32ee4af66bfb29230af3853ac945210ebdd /test/functional/eval/system_spec.lua | |
| parent | c82e7c75fe4c127a2886e22891794a9f12bff530 (diff) | |
| parent | ab1e11e44fd17ffbd4c1fdb26c2b03de3c6831ae (diff) | |
| download | rneovim-4fedad6c5b819fa91d4073c86d2d687e6c4d5ea4.tar.gz rneovim-4fedad6c5b819fa91d4073c86d2d687e6c4d5ea4.tar.bz2 rneovim-4fedad6c5b819fa91d4073c86d2d687e6c4d5ea4.zip | |
Merge #7753 'win: enable more functional tests'
Diffstat (limited to 'test/functional/eval/system_spec.lua')
| -rw-r--r-- | test/functional/eval/system_spec.lua | 11 | 
1 files changed, 8 insertions, 3 deletions
| diff --git a/test/functional/eval/system_spec.lua b/test/functional/eval/system_spec.lua index 7e213e2156..e2b12b6bc9 100644 --- a/test/functional/eval/system_spec.lua +++ b/test/functional/eval/system_spec.lua @@ -89,7 +89,9 @@ describe('system()', function()      end)      it('does NOT run in shell', function() -      if not iswin() then +      if iswin() then +        eq("%PATH%\n", eval("system(['powershell', '-NoProfile', '-NoLogo', '-ExecutionPolicy', 'RemoteSigned', '-Command', 'echo', '%PATH%'])")) +      else          eq("* $PATH %PATH%\n", eval("system(['echo', '*', '$PATH', '%PATH%'])"))        end      end) @@ -185,6 +187,7 @@ describe('system()', function()      end)      it('`yes` and is interrupted with CTRL-C', function() +      if helpers.pending_win32(pending) then return end        feed(':call system("yes")<cr>')        screen:expect([[                                                               | @@ -442,11 +445,13 @@ describe('systemlist()', function()    describe('with output containing NULs', function()      local fname = 'Xtest' -    before_each(create_file_with_nuls(fname)) +    before_each(function() +      command('set ff=unix') +      create_file_with_nuls(fname)() +    end)      after_each(delete_file(fname))      it('replaces NULs by newline characters', function() -      if helpers.pending_win32(pending) then return end        eq({'part1\npart2\npart3'}, eval('systemlist("cat '..fname..'")'))      end)    end) | 
