diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-03-11 22:56:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 22:56:16 +0100 |
commit | 9d574f8dd7248a4cf8dcbe615f3058d34efb7ac3 (patch) | |
tree | 39d585ab89ffef785d944f01c0ef7c5dc3b754e2 /test | |
parent | 829d92eca3d72a701adc6e6aa17ccd9fe2082479 (diff) | |
download | rneovim-9d574f8dd7248a4cf8dcbe615f3058d34efb7ac3.tar.gz rneovim-9d574f8dd7248a4cf8dcbe615f3058d34efb7ac3.tar.bz2 rneovim-9d574f8dd7248a4cf8dcbe615f3058d34efb7ac3.zip |
ci: bump to windows 2022
Skip failing funcitonaltests. Use jobstart() instead termopen() for
oldtests to prevent CI freezing.
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/autocmd/termxx_spec.lua | 1 | ||||
-rw-r--r-- | test/functional/ex_cmds/mksession_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/ui/output_spec.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/runnvim.vim | 6 |
4 files changed, 8 insertions, 2 deletions
diff --git a/test/functional/autocmd/termxx_spec.lua b/test/functional/autocmd/termxx_spec.lua index 63b5617eef..a9980dda04 100644 --- a/test/functional/autocmd/termxx_spec.lua +++ b/test/functional/autocmd/termxx_spec.lua @@ -50,6 +50,7 @@ describe('autocmd TermClose', function() end) it('triggers when long-running terminal job gets stopped', function() + skip(is_os('win')) nvim('set_option', 'shell', is_os('win') and 'cmd.exe' or 'sh') command('autocmd TermClose * let g:test_termclose = 23') command('terminal') diff --git a/test/functional/ex_cmds/mksession_spec.lua b/test/functional/ex_cmds/mksession_spec.lua index 0a0c7ca410..0a1cdd93aa 100644 --- a/test/functional/ex_cmds/mksession_spec.lua +++ b/test/functional/ex_cmds/mksession_spec.lua @@ -18,6 +18,8 @@ local is_os = helpers.is_os local file_prefix = 'Xtest-functional-ex_cmds-mksession_spec' +if helpers.skip(helpers.is_os('win')) then return end + describe(':mksession', function() local session_file = file_prefix .. '.vim' local tab_dir = file_prefix .. '.d' diff --git a/test/functional/ui/output_spec.lua b/test/functional/ui/output_spec.lua index 223844405e..954431d689 100644 --- a/test/functional/ui/output_spec.lua +++ b/test/functional/ui/output_spec.lua @@ -54,6 +54,7 @@ describe("shell command :!", function() it("throttles shell-command output greater than ~10KB", function() skip(is_os('openbsd'), 'FIXME #10804') + skip(is_os('win')) child_session.feed_data((":!%s REP 30001 foo\n"):format(testprg('shell-test'))) -- If we observe any line starting with a dot, then throttling occurred. diff --git a/test/old/testdir/runnvim.vim b/test/old/testdir/runnvim.vim index a46e2d3fc0..2db60d05b3 100644 --- a/test/old/testdir/runnvim.vim +++ b/test/old/testdir/runnvim.vim @@ -23,11 +23,13 @@ function Main() set lines=25 set columns=80 enew - let job = termopen(args, s:logger) + " FIXME: using termopen() hangs on Windows CI + let job = has('win32') ? jobstart(args, s:logger) : termopen(args, s:logger) let results = jobwait([job], 5 * 60 * 1000) " TODO(ZyX-I): Get colors let screen = getline(1, '$') - bwipeout! " kills the job always. + call jobstop(job) " kills the job always. + bwipeout! let stringified_events = map(s:logger.d_events, \'v:val[0] . ": " . ' . \'join(map(v:val[1], '. |