Mercurial > vim
diff src/testdir/test_functions.vim @ 27412:557a50b0d10b v8.2.4234
patch 8.2.4234: test_garbagecollect_now() does not check v:testing
Commit: https://github.com/vim/vim/commit/b3d83980d2ac0f7a25314270416f17af874ca269
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 27 19:59:47 2022 +0000
patch 8.2.4234: test_garbagecollect_now() does not check v:testing
Problem: test_garbagecollect_now() does not check v:testing as documented.
Solution: Give an error if v:testing is not set.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 27 Jan 2022 21:00:04 +0100 |
parents | 7ec64e4539af |
children | 4c16acb2525f |
line wrap: on
line diff
--- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -2663,6 +2663,12 @@ func Test_range() call assert_fails('let x=range(1, 4, [])', 'E745:') endfunc +func Test_garbagecollect_now_fails() + let v:testing = 0 + call assert_fails('call test_garbagecollect_now()', 'E1142:') + let v:testing = 1 +endfunc + func Test_echoraw() CheckScreendump