vim-patch:8.2.0687: some tests do not work on FreeBSD

Problem:    Some tests do not work on FreeBSD.
Solution:   Enable modeline.  Use WaitFor() in more cases. (Ozaki Kiichi,
            closes vim/vim#6036)
41d4299f26
This commit is contained in:
zeertzjq 2022-02-04 09:23:54 +08:00
parent a998b24c56
commit 7c3064d46e

View File

@ -1789,7 +1789,6 @@ func s:create_test_file(filename)
endfunc endfunc
func Test_switchbuf() func Test_switchbuf()
CheckNotBSD
call s:create_test_file('Xqftestfile1') call s:create_test_file('Xqftestfile1')
call s:create_test_file('Xqftestfile2') call s:create_test_file('Xqftestfile2')
call s:create_test_file('Xqftestfile3') call s:create_test_file('Xqftestfile3')
@ -1915,6 +1914,7 @@ func Test_switchbuf()
" If opening a file changes 'switchbuf', then the new value should be " If opening a file changes 'switchbuf', then the new value should be
" retained. " retained.
set modeline&vim
call writefile(["vim: switchbuf=split"], 'Xqftestfile1') call writefile(["vim: switchbuf=split"], 'Xqftestfile1')
enew | only enew | only
set switchbuf&vim set switchbuf&vim