diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-19 19:11:35 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-19 19:11:35 +0100 |
commit | b4c5572e749063daeef30cfc2932bea1fd468165 (patch) | |
tree | 98d6bc9fbfea2ca0c37b3dca7e39972098fd8afa /src/testdir/gen_opt_test.vim | |
parent | 651e4056aceaa580df9e2fff575a6402d5c6f0dc (diff) |
patch 8.0.0488: running tests leaves an "xxx" file behindv8.0.0488
Problem: Running tests leaves an "xxx" file behind.
Solution: Delete the 'verbosefile' after resetting the option.
Diffstat (limited to 'src/testdir/gen_opt_test.vim')
-rw-r--r-- | src/testdir/gen_opt_test.vim | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/testdir/gen_opt_test.vim b/src/testdir/gen_opt_test.vim index 16723be04c..b69ae67241 100644 --- 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') |