summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_autochdir.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-10-27 00:55:04 +0200
committerBram Moolenaar <Bram@vim.org>2017-10-27 00:55:04 +0200
commitcf1ba35fc2ebd41b9a7738bbd1f026f5311560aa (patch)
treec485902b799a521cf8675a11b8ab73a7745c86eb /src/testdir/test_autochdir.vim
parent9ad89c6c4f89cd710d8244d8010b8b0ae30ba79d (diff)
patch 8.0.1224: still interference between test functionsv8.0.1224
Problem: Still interference between test functions. Solution: Clear autocommands. Wipe all buffers. Fix tests that depend on a specific start context.
Diffstat (limited to 'src/testdir/test_autochdir.vim')
-rw-r--r--src/testdir/test_autochdir.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_autochdir.vim b/src/testdir/test_autochdir.vim
index f52e2e668a..05d69631c4 100644
--- a/src/testdir/test_autochdir.vim
+++ b/src/testdir/test_autochdir.vim
@@ -5,6 +5,7 @@ if !exists("+autochdir")
endif
func Test_set_filename()
+ let cwd = getcwd()
call test_autochdir()
set acd
new
@@ -13,5 +14,6 @@ func Test_set_filename()
call assert_equal("samples", substitute(getcwd(), '.*/\(\k*\)', '\1', ''))
bwipe!
set noacd
+ exe 'cd ' . cwd
call delete('samples/Xtest')
endfunc