diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-10-16 13:00:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-16 13:00:14 +0100 |
commit | f08b0eb8691ff09f98bc4beef986ece1c521655f (patch) | |
tree | 46dcc3bc1012a1dc5960f509ccb08ef23c5735cf /src/testdir/test_channel.vim | |
parent | db3b44640d69ab27270691a3cab8d83cc93a0861 (diff) | |
download | vim-git-f08b0eb8691ff09f98bc4beef986ece1c521655f.tar.gz |
patch 8.2.3518: Test_xrestore sometimes failsv8.2.3518
Problem: Test_xrestore sometimes fails.
Solution: Mark the test as flayky. Move marking test as flaky to the test
instead of listing them in runtest.
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r-- | src/testdir/test_channel.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index fbe6a8428..f8cdef4fc 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -795,6 +795,7 @@ func Test_pipe_to_buffer_name_nomsg() endfunc func Test_close_output_buffer() + let g:test_is_flaky = 1 enew! let test_lines = ['one', 'two'] call setline(1, test_lines) @@ -935,6 +936,7 @@ endfunc func Run_pipe_through_sort(all, use_buffer) CheckExecutable sort + let g:test_is_flaky = 1 let options = {'out_io': 'buffer', 'out_name': 'sortout'} if a:use_buffer @@ -1206,6 +1208,7 @@ func Test_reuse_channel() endfunc func Test_out_cb() + let g:test_is_flaky = 1 let dict = {'thisis': 'dict: '} func dict.outHandler(chan, msg) dict if type(a:msg) == v:t_string @@ -1333,6 +1336,7 @@ func Test_out_cb_lambda() endfunc func Test_close_and_exit_cb() + let g:test_is_flaky = 1 let g:retdict = {'ret': {}} func g:retdict.close_cb(ch) dict let self.ret['close_cb'] = a:ch->ch_getjob()->job_status() @@ -1560,6 +1564,7 @@ endfunction func Test_exit_callback_interval() CheckFunction reltimefloat + let g:test_is_flaky = 1 let g:exit_cb_val = {'start': reltime(), 'end': 0, 'process': 0} let job = [s:python, '-c', 'import time;time.sleep(0.5)']->job_start({'exit_cb': 'MyExitTimeCb'}) @@ -1742,6 +1747,7 @@ func Test_using_freed_memory() endfunc func Test_collapse_buffers() + let g:test_is_flaky = 1 CheckExecutable cat sp test_channel.vim @@ -1884,6 +1890,7 @@ func Test_env() endfunc func Test_cwd() + let g:test_is_flaky = 1 let g:envstr = '' if has('win32') let expect = $TEMP |