From 122890463a547f319e706b952e1f3e89eec0e57c Mon Sep 17 00:00:00 2001 From: Florian Walch Date: Mon, 25 May 2015 09:45:17 +0300 Subject: tests: Use pending() instead of silently skipping test. #2737 --- test/functional/shell/viml_system_spec.lua | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'test/functional/shell') 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) -- cgit