forked from aniani/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.
This commit is contained in:
parent
b31cb04771
commit
83497f8758
@ -92,11 +92,7 @@ func RetabLoop()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_retab_endless()
|
func Test_retab_endless()
|
||||||
" FIXME: why does this hang on MS-Windows?
|
|
||||||
CheckNotMSWindows
|
|
||||||
|
|
||||||
" inside try/catch we catch the error message
|
" inside try/catch we catch the error message
|
||||||
new
|
|
||||||
call setline(1, "\t0\t")
|
call setline(1, "\t0\t")
|
||||||
let caught = 'no'
|
let caught = 'no'
|
||||||
try
|
try
|
||||||
@ -105,20 +101,21 @@ func Test_retab_endless()
|
|||||||
let caught = v:exception
|
let caught = v:exception
|
||||||
endtry
|
endtry
|
||||||
call assert_match('E1240:', caught)
|
call assert_match('E1240:', caught)
|
||||||
bwipe!
|
|
||||||
set tabstop&
|
set tabstop&
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_nocatch_retab_endless()
|
func Test_nocatch_retab_endless()
|
||||||
" FIXME: does this hang on MS-Windows?
|
" FIXME: why does this hang on MS-Windows? Is got_int reset somewhere?
|
||||||
CheckNotMSWindows
|
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
|
" not inside try/catch an interrupt is generated to get out of loops
|
||||||
new
|
|
||||||
call setline(1, "\t0\t")
|
call setline(1, "\t0\t")
|
||||||
call assert_fails('call RetabLoop()', ['E1240:', 'Interrupted'])
|
call assert_fails('call RetabLoop()', ['E1240:', 'Interrupted'])
|
||||||
|
|
||||||
bwipe!
|
|
||||||
set tabstop&
|
set tabstop&
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
@ -734,6 +734,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
5105,
|
||||||
/**/
|
/**/
|
||||||
5104,
|
5104,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user