diff options
author | Florian Walch <florian@fwalch.com> | 2015-05-25 09:45:17 +0300 |
---|---|---|
committer | Florian Walch <florian@fwalch.com> | 2015-05-29 20:57:20 +0300 |
commit | 122890463a547f319e706b952e1f3e89eec0e57c (patch) | |
tree | 9fc5cc61e0c3741db6fe920e5a5f1d4836557056 /test/functional/shell/viml_system_spec.lua | |
parent | 412d246be71bd99cb4edde4e6f984b0b0d91bcd9 (diff) | |
download | rneovim-122890463a547f319e706b952e1f3e89eec0e57c.tar.gz rneovim-122890463a547f319e706b952e1f3e89eec0e57c.tar.bz2 rneovim-122890463a547f319e706b952e1f3e89eec0e57c.zip |
tests: Use pending() instead of silently skipping test. #2737
Diffstat (limited to 'test/functional/shell/viml_system_spec.lua')
-rw-r--r-- | test/functional/shell/viml_system_spec.lua | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/test/functional/shell/viml_system_spec.lua b/test/functional/shell/viml_system_spec.lua index bd47d31a14..6e10715612 100644 --- a/test/functional/shell/viml_system_spec.lua +++ b/test/functional/shell/viml_system_spec.lua @@ -184,14 +184,16 @@ describe('system()', function() end) end) - if xclip then - describe("with a program that doesn't close stdout", function() + describe("with a program that doesn't close stdout", function() + if not xclip then + pending('skipped (missing xclip)') + else it('will exit properly after passing input', function() eq('', eval([[system('xclip -i -selection clipboard', 'clip-data')]])) eq('clip-data', eval([[system('xclip -o -selection clipboard')]])) end) - end) - end + end + end) describe('command passed as a list', function() it('does not execute &shell', function() @@ -361,14 +363,16 @@ describe('systemlist()', function() end) end) - if xclip then - describe("with a program that doesn't close stdout", function() + describe("with a program that doesn't close stdout", function() + if not xclip then + pending('skipped (missing xclip)') + else it('will exit properly after passing input', function() eq({}, eval( "systemlist('xclip -i -selection clipboard', ['clip', 'data'])")) eq({'clip', 'data'}, eval( "systemlist('xclip -o -selection clipboard')")) end) - end) - end + end + end) end) |