test: Make xclip exit after one selection request

Closes #4900
This commit is contained in:
James McCoy 2017-02-02 19:45:34 -05:00
parent e8899178ec
commit 7e30fe3157
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB

View File

@ -266,7 +266,7 @@ describe('system()', function()
pending('missing `xclip`', function() end)
else
it('will exit properly after passing input', function()
eq('', eval([[system('xclip -i -selection clipboard', 'clip-data')]]))
eq('', eval([[system('xclip -i -loops 1 -selection clipboard', 'clip-data')]]))
eq('clip-data', eval([[system('xclip -o -selection clipboard')]]))
end)
end
@ -440,7 +440,7 @@ describe('systemlist()', function()
else
it('will exit properly after passing input', function()
eq({}, eval(
"systemlist('xclip -i -selection clipboard', ['clip', 'data'])"))
"systemlist('xclip -i -loops 1 -selection clipboard', ['clip', 'data'])"))
eq({'clip', 'data'}, eval(
"systemlist('xclip -o -selection clipboard')"))
end)