]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.0.0488: running tests leaves an "xxx" file behind v8.0.0488
authorBram Moolenaar <Bram@vim.org>
Sun, 19 Mar 2017 18:11:35 +0000 (19:11 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 19 Mar 2017 18:11:35 +0000 (19:11 +0100)
Problem:    Running tests leaves an "xxx" file behind.
Solution:   Delete the 'verbosefile' after resetting the option.

src/testdir/gen_opt_test.vim
src/version.c

index 16723be04ce3232922ef729388082c167e43d6e0..b69ae67241c68ed3f75c6786a5a80877802aedcc 100644 (file)
@@ -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')
index c9d7361ddb3d4b68f9c6a3f6dbfcb42348888282..c620780ce4171254d58adf6a9cb71bae4d1e1915 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    488,
 /**/
     487,
 /**/