aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 723d2ccfa4..f0a85785b3 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -763,13 +763,10 @@ function module.create_callindex(func)
return table
end
--- Helper to skip tests. Returns true in Windows systems.
--- pending_fn is pending() from busted
-function module.pending_win32(pending_fn)
- if iswin() then
- if pending_fn ~= nil then
- pending_fn('FIXME: Windows', function() end)
- end
+function module.skip(cond, reason)
+ if cond then
+ local pending = getfenv(2).pending
+ pending(reason or 'FIXME')
return true
else
return false