aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-25 13:07:30 +0800
committerGitHub <noreply@github.com>2022-12-25 13:07:30 +0800
commit6f25623e793e058c78481b7fb7a42eeff642694b (patch)
tree0f0af121e7e15a8cbbb841f0af10f17075749544
parent9be24110f68abc111c87c88d82f50f64a1d3ecdd (diff)
downloadrneovim-6f25623e793e058c78481b7fb7a42eeff642694b.tar.gz
rneovim-6f25623e793e058c78481b7fb7a42eeff642694b.tar.bz2
rneovim-6f25623e793e058c78481b7fb7a42eeff642694b.zip
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) https://github.com/vim/vim/commit/8dea145e39a2569153cb63487d3403a46a882189 Co-authored-by: Dominique Pelle <dominique.pelle@gmail.com>
-rw-r--r--src/nvim/testdir/test_cd.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cd.vim b/src/nvim/testdir/test_cd.vim
index 2a2437f542..2b37f2c7c0 100644
--- a/src/nvim/testdir/test_cd.vim
+++ b/src/nvim/testdir/test_cd.vim
@@ -233,6 +233,8 @@ endfunc
func Test_getcwd_actual_dir()
CheckFunction test_autochdir
+ CheckOption autochdir
+
let startdir = getcwd()
call mkdir('Xactual')
call test_autochdir()