diff src/testdir/test_filetype.vim @ 22673:67aa7507ea2e v8.2.1885

patch 8.2.1885: filetype tests unnessarily creates swap files Commit: https://github.com/vim/vim/commit/2733779a1a36c06f5f900666ac94bfe4c25ea39b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 22 12:33:32 2020 +0200 patch 8.2.1885: filetype tests unnessarily creates swap files Problem: Filetype tests unnessarily creates swap files. Solution: Disable 'swapfile'. (Ken Takata, closes https://github.com/vim/vim/issues/7183)
author Bram Moolenaar <Bram@vim.org>
date Thu, 22 Oct 2020 12:45:05 +0200
parents d16f9bd12b82
children fcbded1e3602
line wrap: on
line diff
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -549,6 +549,7 @@ let s:filename_case_checks = {
     \ }
 
 func CheckItems(checks)
+  set noswapfile
   for [ft, names] in items(a:checks)
     for i in range(0, len(names) - 1)
       new
@@ -565,6 +566,7 @@ func CheckItems(checks)
       bwipe!
     endfor
   endfor
+  set swapfile&
 endfunc
 
 func Test_filetype_detection()