diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-30 10:07:04 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-30 10:07:14 +0800 |
commit | 3f743c39d3be332eede7fe7a4f6641dd9348b922 (patch) | |
tree | a8101ffc28666d9304180a7aaff488b185e82ee0 /src | |
parent | b57daafdd9ece4d5e8412f080c01b8fa82774985 (diff) | |
download | rneovim-3f743c39d3be332eede7fe7a4f6641dd9348b922.tar.gz rneovim-3f743c39d3be332eede7fe7a4f6641dd9348b922.tar.bz2 rneovim-3f743c39d3be332eede7fe7a4f6641dd9348b922.zip |
vim-patch:8.2.5105: test still hangs on MS-Windows
Problem: Test still hangs on MS-Windows.
Solution: Skip "nocatch" test the right way.
https://github.com/vim/vim/commit/83497f875881973df772cc4cc593766345df6c4a
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_retab.vim | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/nvim/testdir/test_retab.vim b/src/nvim/testdir/test_retab.vim index 3bd8a9928c..4253e77487 100644 --- a/src/nvim/testdir/test_retab.vim +++ b/src/nvim/testdir/test_retab.vim @@ -92,11 +92,7 @@ func RetabLoop() endfunc func Test_retab_endless() - " FIXME: why does this hang on MS-Windows? - CheckNotMSWindows - " inside try/catch we catch the error message - new call setline(1, "\t0\t") let caught = 'no' try @@ -105,20 +101,21 @@ func Test_retab_endless() let caught = v:exception endtry call assert_match('E1240:', caught) - bwipe! + set tabstop& endfunc func Test_nocatch_retab_endless() - " FIXME: does this hang on MS-Windows? - CheckNotMSWindows + " FIXME: why does this hang on MS-Windows? Is got_int reset somewhere? + if has('win32') + let g:skipped_reason = "does not work on MS-Windows" + return + endif " not inside try/catch an interrupt is generated to get out of loops - new call setline(1, "\t0\t") call assert_fails('call RetabLoop()', ['E1240:', 'Interrupted']) - bwipe! set tabstop& endfunc |