comparison src/testdir/test_autocmd.vim @ 12692:03a6aeea2096 v8.0.1224

patch 8.0.1224: still interference between test functions commit https://github.com/vim/vim/commit/cf1ba35fc2ebd41b9a7738bbd1f026f5311560aa Author: Bram Moolenaar <Bram@vim.org> Date: Fri Oct 27 00:55:04 2017 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Fri, 27 Oct 2017 01:00:05 +0200
parents 429bf1b9292f
children 0b6c09957b43
comparison
equal deleted inserted replaced
12691:ec5a749db3fa 12692:03a6aeea2096
252 func Test_BufReadCmdHelp() 252 func Test_BufReadCmdHelp()
253 " This used to cause access to free memory 253 " This used to cause access to free memory
254 au BufReadCmd * e +h 254 au BufReadCmd * e +h
255 help 255 help
256 256
257 helpclose
258 au! BufReadCmd 257 au! BufReadCmd
259 endfunc 258 endfunc
260 259
261 func Test_BufReadCmdHelpJump() 260 func Test_BufReadCmdHelpJump()
262 " This used to cause access to free memory 261 " This used to cause access to free memory
263 au BufReadCmd * e +h{ 262 au BufReadCmd * e +h{
264 help 263 " } to fix highlighting
265 264 call assert_fails('help', 'E434:')
266 helpclose 265
267 au! BufReadCmd 266 au! BufReadCmd
268 endfunc 267 endfunc
269 268
270 func Test_augroup_deleted() 269 func Test_augroup_deleted()
271 " This caused a crash before E936 was introduced 270 " This caused a crash before E936 was introduced