test: introduce skip() #21010

This is essentially a convenience wrapper around the `pending()`
function, similar to `skip_fragile()` but more general-purpose.

Also remove `pending_win32` function as it can be replaced by
`skip(iswin())`.
This commit is contained in:
dundargoc
2022-11-13 14:52:19 +01:00
committed by GitHub
parent 0a96f18ed7
commit 736c36c02f
34 changed files with 118 additions and 121 deletions

View File

@@ -250,7 +250,7 @@ describe('server -> client', function()
pcall(funcs.jobstop, jobid)
end)
if helpers.pending_win32(pending) then return end
if helpers.skip(helpers.iswin()) then return end
it('rpc and text stderr can be combined', function()
local status, rv = pcall(funcs.rpcrequest, jobid, 'poll')