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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user