1
0
forked from aniani/vim

patch 8.0.1224: still interference between test functions

Problem:    Still interference between test functions.
Solution:   Clear autocommands. Wipe all buffers.  Fix tests that depend on a
            specific start context.
This commit is contained in:
Bram Moolenaar
2017-10-27 00:55:04 +02:00
parent 9ad89c6c4f
commit cf1ba35fc2
12 changed files with 32 additions and 29 deletions

View File

@@ -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