1
0
forked from aniani/vim

patch 8.2.5108: retab test disabled because it hangs on MS-Windows

Problem:    Retab test disabled because it hangs on MS-Windows.
Solution:   Also set got_int at the other place a overlong text is detected.
This commit is contained in:
Bram Moolenaar
2022-06-16 12:10:48 +01:00
parent 93a1096fe4
commit 308660bd26
3 changed files with 20 additions and 16 deletions

View File

@@ -92,7 +92,7 @@ func RetabLoop()
endfunc
func Test_retab_endless()
" inside try/catch we catch the error message
" inside try/catch we can catch the error message
call setline(1, "\t0\t")
let caught = 'no'
try
@@ -106,13 +106,7 @@ func Test_retab_endless()
endfunc
func Test_nocatch_retab_endless()
" 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
" when not inside try/catch an interrupt is generated to get out of loops
call setline(1, "\t0\t")
call assert_fails('call RetabLoop()', ['E1240:', 'Interrupted'])