Skip to content

Commit b4c5572

Browse files
committed
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.
1 parent 651e405 commit b4c5572

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/testdir/gen_opt_test.vim

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,6 @@ while 1
175175
for val in a[0]
176176
call add(script, 'set ' . name . '=' . val)
177177
call add(script, 'set ' . shortname . '=' . val)
178-
179-
if name == 'verbosefile' && !empty(val)
180-
call add(script, 'call delete("'. val. '")')
181-
endif
182178
endfor
183179

184180
" setting an option can only fail when it's implemented.
@@ -192,6 +188,9 @@ while 1
192188

193189
call add(script, 'set ' . name . '&')
194190
call add(script, 'set ' . shortname . '&')
191+
if name == 'verbosefile'
192+
call add(script, 'call delete("xxx")')
193+
endif
195194

196195
if name == 'more'
197196
call add(script, 'set nomore')

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
488,
767769
/**/
768770
487,
769771
/**/

0 commit comments

Comments
 (0)