]> granicus.if.org Git - vim/commitdiff
patch 8.0.0792: spell test leaves files behind v8.0.0792
authorBram Moolenaar <Bram@vim.org>
Fri, 28 Jul 2017 13:38:10 +0000 (15:38 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 28 Jul 2017 13:38:10 +0000 (15:38 +0200)
Problem:    Spell test leaves files behind.
Solution:   Delete the files.

src/testdir/test_spell.vim
src/version.c

index 83da2a0bebb20b03d57df87021f83522dc150c7c..e4c236c968f9a53a5a189bc0a2d56827003f1b1a 100644 (file)
@@ -4,6 +4,16 @@ if !has('spell')
   finish
 endif
 
+func TearDown()
+  set nospell
+  call delete('Xtest.aff')
+  call delete('Xtest.dic')
+  call delete('Xtest.latin1.add')
+  call delete('Xtest.latin1.add.spl')
+  call delete('Xtest.latin1.spl')
+  call delete('Xtest.latin1.sug')
+endfunc
+
 func Test_wrap_search()
   new
   call setline(1, ['The', '', 'A plong line with two zpelling mistakes', '', 'End'])
@@ -226,6 +236,7 @@ endfunc
 func Test_zz_sal_and_addition()
   set enc=latin1
   set spellfile=
+  call writefile(g:test_data_dic1, "Xtest.dic")
   call writefile(g:test_data_aff_sal, "Xtest.aff")
   mkspell! Xtest Xtest
   set spl=Xtest.latin1.spl spell
index 350897bf8af2c0700f2ebbe314f5326ecc7deabb..3b45c9482b4c41522d0d994c516e8a0e0eb4feef 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    792,
 /**/
     791,
 /**/