From 39c628d031b89e9048340f6c95b9c3a97c2a0089 Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Mon, 15 Aug 2016 16:42:12 -0700 Subject: Mark some functional tests as pending in Windows --- test/functional/helpers.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/functional/helpers.lua') diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index 2d54d23254..74625eb7fa 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -430,6 +430,20 @@ local function create_callindex(func) return table end +-- Helper to skip tests. Returns true in Windows systems. +-- pending_func is the pending() from busted +local function pending_win32(pending_func) + clear() + if os_name() == 'windows' then + if pending_func ~= nil then + pending_func('FIXME: Windows', function() end) + end + return true + else + return false + end +end + local funcs = create_callindex(nvim_call) local meths = create_callindex(nvim) local bufmeths = create_callindex(buffer) @@ -493,6 +507,7 @@ return function(after_each) curbufmeths = curbufmeths, curwinmeths = curwinmeths, curtabmeths = curtabmeths, + pending_win32 = pending_win32, NIL = mpack.NIL, } end -- cgit