mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 9.0.0232: test with BufNewFile autocmd is flaky
Problem: Test with BufNewFile autocmd is flaky. Solution: Use another file name.
This commit is contained in:
@@ -1025,23 +1025,23 @@ enddef
|
||||
|
||||
def Test_bar_line_continuation()
|
||||
var lines =<< trim END
|
||||
au BufNewFile Xfile g:readFile = 1
|
||||
au BufNewFile XveryNewFile g:readFile = 1
|
||||
| g:readExtra = 2
|
||||
g:readFile = 0
|
||||
g:readExtra = 0
|
||||
edit Xfile
|
||||
edit XveryNewFile
|
||||
assert_equal(1, g:readFile)
|
||||
assert_equal(2, g:readExtra)
|
||||
bwipe!
|
||||
au! BufNewFile
|
||||
|
||||
au BufNewFile Xfile g:readFile = 1
|
||||
au BufNewFile XveryNewFile g:readFile = 1
|
||||
| g:readExtra = 2
|
||||
| g:readMore = 3
|
||||
g:readFile = 0
|
||||
g:readExtra = 0
|
||||
g:readMore = 0
|
||||
edit Xfile
|
||||
edit XveryNewFile
|
||||
assert_equal(1, g:readFile)
|
||||
assert_equal(2, g:readExtra)
|
||||
assert_equal(3, g:readMore)
|
||||
|
@@ -731,6 +731,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
232,
|
||||
/**/
|
||||
231,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user