Mercurial > vim
comparison src/testdir/test_retab.vim @ 29171:72140c10875f v8.2.5105
patch 8.2.5105: test still hangs on MS-Windows
Commit: https://github.com/vim/vim/commit/83497f875881973df772cc4cc593766345df6c4a
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 15 22:11:45 2022 +0100
patch 8.2.5105: test still hangs on MS-Windows
Problem: Test still hangs on MS-Windows.
Solution: Skip "nocatch" test the right way.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 15 Jun 2022 23:15:03 +0200 |
parents | 0d74b4bb4970 |
children | 6a6c56354cfc |
comparison
equal
deleted
inserted
replaced
29170:6adfd606564e | 29171:72140c10875f |
---|---|
90 retab 4 | 90 retab 4 |
91 endwhile | 91 endwhile |
92 endfunc | 92 endfunc |
93 | 93 |
94 func Test_retab_endless() | 94 func Test_retab_endless() |
95 " FIXME: why does this hang on MS-Windows? | |
96 CheckNotMSWindows | |
97 | |
98 " inside try/catch we catch the error message | 95 " inside try/catch we catch the error message |
99 new | |
100 call setline(1, "\t0\t") | 96 call setline(1, "\t0\t") |
101 let caught = 'no' | 97 let caught = 'no' |
102 try | 98 try |
103 call RetabLoop() | 99 call RetabLoop() |
104 catch /E1240:/ | 100 catch /E1240:/ |
105 let caught = v:exception | 101 let caught = v:exception |
106 endtry | 102 endtry |
107 call assert_match('E1240:', caught) | 103 call assert_match('E1240:', caught) |
108 bwipe! | 104 |
109 set tabstop& | 105 set tabstop& |
110 endfunc | 106 endfunc |
111 | 107 |
112 func Test_nocatch_retab_endless() | 108 func Test_nocatch_retab_endless() |
113 " FIXME: does this hang on MS-Windows? | 109 " FIXME: why does this hang on MS-Windows? Is got_int reset somewhere? |
114 CheckNotMSWindows | 110 if has('win32') |
111 let g:skipped_reason = "does not work on MS-Windows" | |
112 return | |
113 endif | |
115 | 114 |
116 " not inside try/catch an interrupt is generated to get out of loops | 115 " not inside try/catch an interrupt is generated to get out of loops |
117 new | |
118 call setline(1, "\t0\t") | 116 call setline(1, "\t0\t") |
119 call assert_fails('call RetabLoop()', ['E1240:', 'Interrupted']) | 117 call assert_fails('call RetabLoop()', ['E1240:', 'Interrupted']) |
120 | 118 |
121 bwipe! | |
122 set tabstop& | 119 set tabstop& |
123 endfunc | 120 endfunc |
124 | 121 |
125 | 122 |
126 " vim: shiftwidth=2 sts=2 expandtab | 123 " vim: shiftwidth=2 sts=2 expandtab |