changeset 11203:c3504890b37d v8.0.0488

patch 8.0.0488: running tests leaves an "xxx" file behind commit https://github.com/vim/vim/commit/b4c5572e749063daeef30cfc2932bea1fd468165 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 19 19:11:35 2017 +0100 patch 8.0.0488: running tests leaves an "xxx" file behind Problem: Running tests leaves an "xxx" file behind. Solution: Delete the 'verbosefile' after resetting the option.
author Christian Brabandt <cb@256bit.org>
date Sun, 19 Mar 2017 19:15:04 +0100
parents d451f8432152
children 7a1ada568d8c
files src/testdir/gen_opt_test.vim src/version.c
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/gen_opt_test.vim
+++ b/src/testdir/gen_opt_test.vim
@@ -175,10 +175,6 @@ while 1
       for val in a[0]
 	call add(script, 'set ' . name . '=' . val)
 	call add(script, 'set ' . shortname . '=' . val)
-
-	if name == 'verbosefile' && !empty(val)
-	  call add(script, 'call delete("'. val. '")')
-	endif
       endfor
 
       " setting an option can only fail when it's implemented.
@@ -192,6 +188,9 @@ while 1
 
     call add(script, 'set ' . name . '&')
     call add(script, 'set ' . shortname . '&')
+    if name == 'verbosefile'
+      call add(script, 'call delete("xxx")')
+    endif
 
     if name == 'more'
       call add(script, 'set nomore')
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    488,
+/**/
     487,
 /**/
     486,