vim-patch:8.2.3737: test fails without the 'autochdir' option (#21529)

Problem:    Test fails without the 'autochdir' option.
Solution:   Check that the option is available. (Dominique Pellé, closes vim/vim#9272)

8dea145e39

Co-authored-by: Dominique Pelle <dominique.pelle@gmail.com>
This commit is contained in:
zeertzjq
2022-12-25 13:07:30 +08:00
committed by GitHub
parent 9be24110f6
commit 6f25623e79

View File

@@ -233,6 +233,8 @@ endfunc
func Test_getcwd_actual_dir()
CheckFunction test_autochdir
CheckOption autochdir
let startdir = getcwd()
call mkdir('Xactual')
call test_autochdir()