diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-10-27 00:55:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-10-27 00:55:04 +0200 |
commit | cf1ba35fc2ebd41b9a7738bbd1f026f5311560aa (patch) | |
tree | c485902b799a521cf8675a11b8ab73a7745c86eb /src/testdir/test_autochdir.vim | |
parent | 9ad89c6c4f89cd710d8244d8010b8b0ae30ba79d (diff) | |
download | vim-git-cf1ba35fc2ebd41b9a7738bbd1f026f5311560aa.tar.gz |
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.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_autochdir.vim b/src/testdir/test_autochdir.vim index f52e2e668..05d69631c 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 |