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
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