Mercurial > vim
diff src/testdir/runtest.vim @ 32545:36519954bf67 v9.0.1604
patch 9.0.1604: errors from the codestyle test are a bit confusing
Commit: https://github.com/vim/vim/commit/abc8130d6a680026ffb2cc36b74d239e88f775d6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 4 16:55:27 2023 +0100
patch 9.0.1604: errors from the codestyle test are a bit confusing
Problem: Errors from the codestyle test are a bit confusing.
Solution: Use assert_report() with a clearer message. Avoid a warning for
an existing swap file.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 04 Jun 2023 18:00:05 +0200 |
parents | dbec60b8c253 |
children | 448aef880252 |
line wrap: on
line diff
--- a/src/testdir/runtest.vim +++ b/src/testdir/runtest.vim @@ -111,9 +111,13 @@ if has("win32") else let s:test_script_fname = expand('%') endif + au! SwapExists * call HandleSwapExists() func HandleSwapExists() if exists('g:ignoreSwapExists') + if type(g:ignoreSwapExists) == v:t_string + let v:swapchoice = g:ignoreSwapExists + endif return endif " Ignore finding a swap file for the test script (the user might be