summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_cd.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-14 13:50:55 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-14 13:50:55 +0200
commitdf7df59d85e7e56a796912dc865488a75d3f0e53 (patch)
treed789105edccc4b4bfb6656706516b505447a80e1 /src/testdir/test_cd.vim
parent984dddbef421eda6b8ad60936f380c5f00aebb96 (diff)
patch 8.2.0976: some 'cpoptions' not testedv8.2.0976
Problem: Some 'cpoptions' not tested. Solution: Add more tests. (Yegappan Lakshmanan, closes #6253)
Diffstat (limited to 'src/testdir/test_cd.vim')
-rw-r--r--src/testdir/test_cd.vim24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/testdir/test_cd.vim b/src/testdir/test_cd.vim
index 53f9c1081e..f43f27c048 100644
--- a/src/testdir/test_cd.vim
+++ b/src/testdir/test_cd.vim
@@ -58,30 +58,6 @@ func Test_cd_minus()
call delete('Xresult')
endfunc
-func Test_cd_with_cpo_chdir()
- e Xfoo
- call setline(1, 'foo')
- let path = getcwd()
- set cpo+=.
-
- " :cd should fail when buffer is modified and 'cpo' contains dot.
- call assert_fails('cd ..', 'E747:')
- call assert_equal(path, getcwd())
-
- " :cd with exclamation mark should succeed.
- cd! ..
- call assert_notequal(path, getcwd())
-
- " :cd should succeed when buffer has been written.
- w!
- exe 'cd ' .. fnameescape(path)
- call assert_equal(path, getcwd())
-
- call delete('Xfoo')
- set cpo&
- bw!
-endfunc
-
" Test for chdir()
func Test_chdir_func()
let topdir = getcwd()