0
0
mirror of https://github.com/vim/vim.git synced 2025-10-28 09:27:14 -04:00

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.
This commit is contained in:
Bram Moolenaar
2022-01-27 19:59:47 +00:00
parent a4bc2dd7cc
commit b3d83980d2
4 changed files with 14 additions and 2 deletions

View File

@@ -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