0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 8.2.2979: not all options code is covered by tests

Problem:    Not all options code is covered by tests.
Solution:   Add more tests for options. (Yegappan Lakshmanan, closes #8369)
This commit is contained in:
Yegappan Lakshmanan
2021-06-12 13:46:41 +02:00
committed by Bram Moolenaar
parent 744aecf877
commit 5958549760
8 changed files with 108 additions and 1 deletions

View File

@@ -593,6 +593,12 @@ func Sandbox_tests()
if has('unix')
call assert_fails('cd `pwd`', 'E48:')
endif
" some options cannot be changed in a sandbox
call assert_fails('set exrc', 'E48:')
call assert_fails('set cdpath', 'E48:')
if has('xim')
call assert_fails('set imstyle', 'E48:')
endif
endfunc
func Test_sandbox()