Mercurial > vim
comparison src/testdir/test_autocmd.vim @ 30051:13b02c1ea0f7 v9.0.0363
patch 9.0.0363: common names in test files causes tests to be flaky
Commit: https://github.com/vim/vim/commit/b18b49699776485150b71626069a40d12d2c5590
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 2 21:55:50 2022 +0100
patch 9.0.0363: common names in test files causes tests to be flaky
Problem: Common names in test files causes tests to be flaky.
Solution: Use more specific names.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 02 Sep 2022 23:00:04 +0200 |
parents | 98f5a0618a77 |
children | 0a50e536de81 |
comparison
equal
deleted
inserted
replaced
30050:4d0a9c80a90c | 30051:13b02c1ea0f7 |
---|---|
3060 au! | 3060 au! |
3061 autocmd BufWipeout * let bufnr = bufadd('somefile') | exe "b " .. bufnr | 3061 autocmd BufWipeout * let bufnr = bufadd('somefile') | exe "b " .. bufnr |
3062 augroup END | 3062 augroup END |
3063 let save_cpo = &cpo | 3063 let save_cpo = &cpo |
3064 set cpo+=f | 3064 set cpo+=f |
3065 call assert_fails('r Xfile', ['E812:', 'E484:']) | 3065 call assert_fails('r Xchangebuf', ['E812:', 'E484:']) |
3066 call assert_equal('somefile', @%) | 3066 call assert_equal('somefile', @%) |
3067 let &cpo = save_cpo | 3067 let &cpo = save_cpo |
3068 augroup TestAuCmd | 3068 augroup TestAuCmd |
3069 au! | 3069 au! |
3070 augroup END | 3070 augroup END |