diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-11-01 10:00:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-01 10:00:35 +0100 |
commit | 11b438eb6663b74149633b767061992c00496fb8 (patch) | |
tree | f76e077b24a7f55b18241ad39364ae0b37dbbb59 /test | |
parent | f9fe903579033791e4233e8d55613634492702f5 (diff) | |
parent | 8ce3d0174eb25d6b48995106a7a62c663fd95bac (diff) | |
download | rneovim-11b438eb6663b74149633b767061992c00496fb8.tar.gz rneovim-11b438eb6663b74149633b767061992c00496fb8.tar.bz2 rneovim-11b438eb6663b74149633b767061992c00496fb8.zip |
Merge #8378 from janlazo/win_functional_tests
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/api/buffer_updates_spec.lua | 4 | ||||
-rw-r--r-- | test/functional/api/vim_spec.lua | 4 | ||||
-rw-r--r-- | test/functional/core/channels_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/legacy/011_autocommands_spec.lua | 8 | ||||
-rw-r--r-- | test/functional/plugin/shada_spec.lua | 1 |
5 files changed, 4 insertions, 15 deletions
diff --git a/test/functional/api/buffer_updates_spec.lua b/test/functional/api/buffer_updates_spec.lua index e5cc747f8a..b54d9e1f6e 100644 --- a/test/functional/api/buffer_updates_spec.lua +++ b/test/functional/api/buffer_updates_spec.lua @@ -538,10 +538,6 @@ describe('API: buffer events:', function() end) it('works with :diffput and :diffget', function() - if os.getenv("APPVEYOR") then - pending("Fails on appveyor for some reason.", function() end) - end - local b1, tick1 = editoriginal(true, {"AAA", "BBB"}) local channel = nvim('get_api_info')[1] command('diffthis') diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index 5ca133267d..a9d137391e 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -841,10 +841,6 @@ describe('API', function() end) it('works for job channel', function() - if iswin() and os.getenv('APPVEYOR') ~= nil then - pending("jobstart(['cat']) unreliable on appveyor") - return - end eq(3, eval("jobstart(['cat'], {'rpc': v:true})")) local info = { stream='job', diff --git a/test/functional/core/channels_spec.lua b/test/functional/core/channels_spec.lua index f79f208b69..7b89172f92 100644 --- a/test/functional/core/channels_spec.lua +++ b/test/functional/core/channels_spec.lua @@ -192,7 +192,6 @@ describe('channels', function() end) it('can use buffered output mode', function() - if helpers.pending_win32(pending) then return end source([[ let g:job_opts = { \ 'on_stdout': function('OnEvent'), @@ -225,7 +224,6 @@ describe('channels', function() end) it('can use buffered output mode with no stream callback', function() - if helpers.pending_win32(pending) then return end source([[ function! OnEvent(id, data, event) dict call rpcnotify(1, a:event, a:id, a:data, self.stdout) diff --git a/test/functional/legacy/011_autocommands_spec.lua b/test/functional/legacy/011_autocommands_spec.lua index 379646b2ba..7cc31dc787 100644 --- a/test/functional/legacy/011_autocommands_spec.lua +++ b/test/functional/legacy/011_autocommands_spec.lua @@ -18,6 +18,7 @@ local clear, feed_command, expect, eq, neq, dedent, write_file, feed = helpers.clear, helpers.feed_command, helpers.expect, helpers.eq, helpers.neq, helpers.dedent, helpers.write_file, helpers.feed local iswin = helpers.iswin +local read_file = helpers.read_file local function has_gzip() local null = iswin() and 'nul' or '/dev/null' @@ -60,7 +61,7 @@ describe('file reading, writing and bufnew and filter autocommands', function() os.remove('test.out') end) - if iswin() or not has_gzip() then + if not has_gzip() then pending('skipped (missing `gzip` utility)', function() end) else @@ -77,7 +78,7 @@ describe('file reading, writing and bufnew and filter autocommands', function() it('BufReadPre, BufReadPost (using gzip)', function() prepare_gz_file('Xtestfile', text1) - local gzip_data = io.open('Xtestfile.gz'):read('*all') + local gzip_data = read_file('Xtestfile.gz') feed_command('let $GZIP = ""') -- Setup autocommands to decompress before reading and re-compress afterwards. feed_command("au BufReadPre *.gz exe '!gzip -d ' . shellescape(expand('<afile>'))") @@ -91,7 +92,7 @@ describe('file reading, writing and bufnew and filter autocommands', function() -- Expect the decompressed file in the buffer. expect(text1) -- Expect the original file to be unchanged. - eq(gzip_data, io.open('Xtestfile.gz'):read('*all')) + eq(gzip_data, read_file('Xtestfile.gz')) end) -- luacheck: ignore 621 (Indentation) @@ -142,7 +143,6 @@ describe('file reading, writing and bufnew and filter autocommands', function() end) it('FilterReadPre, FilterReadPost', function() - if helpers.pending_win32(pending) then return end -- Write a special input file for this test block. write_file('test.out', dedent([[ startstart diff --git a/test/functional/plugin/shada_spec.lua b/test/functional/plugin/shada_spec.lua index 5a5b4df1ef..1482d83ee6 100644 --- a/test/functional/plugin/shada_spec.lua +++ b/test/functional/plugin/shada_spec.lua @@ -2301,7 +2301,6 @@ describe('plugin/shada.vim', function() describe('event FileWriteCmd', function() it('works', function() - if helpers.pending_win32(pending) then return end nvim('set_var', 'shada#add_own_header', 0) curbuf('set_lines', 0, 1, true, { 'Jump with timestamp ' .. epoch .. ':', |