diff src/testdir/test_quickfix.vim @ 20263:a85a3207679f v8.2.0687

patch 8.2.0687: some tests do not work on FreeBSD Commit: https://github.com/vim/vim/commit/41d4299f26cc98e253f9c63f8adc9dbb9d49ed5c Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 3 16:29:50 2020 +0200 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 #6036)
author Bram Moolenaar <Bram@vim.org>
date Sun, 03 May 2020 16:30:04 +0200
parents 2fb397573541
children d6827bd31d1d
line wrap: on
line diff
--- a/src/testdir/test_quickfix.vim
+++ b/src/testdir/test_quickfix.vim
@@ -1708,7 +1708,6 @@ func s:create_test_file(filename)
 endfunc
 
 func Test_switchbuf()
-  CheckNotBSD
   call s:create_test_file('Xqftestfile1')
   call s:create_test_file('Xqftestfile2')
   call s:create_test_file('Xqftestfile3')
@@ -1834,6 +1833,7 @@ func Test_switchbuf()
 
   " If opening a file changes 'switchbuf', then the new value should be
   " retained.
+  set modeline&vim
   call writefile(["vim: switchbuf=split"], 'Xqftestfile1')
   enew | only
   set switchbuf&vim