aboutsummaryrefslogtreecommitdiff
path: root/test/functional/shell/viml_system_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/shell/viml_system_spec.lua')
-rw-r--r--test/functional/shell/viml_system_spec.lua20
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)