diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-30 21:46:08 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-30 21:46:08 +0100 |
commit | 61abe7d8f827ec31f098e8abcdf58846b956ef16 (patch) | |
tree | 0cf4ec692b77aeb1be2c1a38d3ff32973aaca45e /src/testdir/test_autocmd.vim | |
parent | 9b03d3e75b4274493bbe76772d7b92238791964c (diff) |
patch 9.0.0336: tests are flaky because of using a common file namev9.0.0336
Problem: Tests are flaky because of using a common file name.
Solution: Rename files and directories to be more unique.
Diffstat (limited to 'src/testdir/test_autocmd.vim')
-rw-r--r-- | src/testdir/test_autocmd.vim | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testdir/test_autocmd.vim b/src/testdir/test_autocmd.vim index b3b4ec5a6f..737dd0bd05 100644 --- a/src/testdir/test_autocmd.vim +++ b/src/testdir/test_autocmd.vim @@ -2229,7 +2229,7 @@ function Test_dirchanged_auto() set acd cd .. call assert_equal([], s:li) - exe 'edit ' . s:dir_foo . '/Xfile' + exe 'edit ' . s:dir_foo . '/Xautofile' call assert_equal(s:dir_foo, getcwd()) let expected = ["pre cd " .. s:dir_foo, "auto:", s:dir_foo] call assert_equal(expected, s:li) @@ -2906,7 +2906,7 @@ func Test_FileChangedRO_winclose() augroup FileChangedROTest au! - autocmd FileChangedRO * edit Xfile + autocmd FileChangedRO * edit Xrofile augroup END new set readonly @@ -2982,13 +2982,13 @@ endfunc " Test for passing invalid arguments to autocmd func Test_autocmd_invalid_args() " Additional character after * for event - call assert_fails('autocmd *a Xfile set ff=unix', 'E215:') + call assert_fails('autocmd *a Xinvfile set ff=unix', 'E215:') augroup Test augroup END " Invalid autocmd event - call assert_fails('autocmd Bufabc Xfile set ft=vim', 'E216:') + call assert_fails('autocmd Bufabc Xinvfile set ft=vim', 'E216:') " Invalid autocmd event in a autocmd group - call assert_fails('autocmd Test Bufabc Xfile set ft=vim', 'E216:') + call assert_fails('autocmd Test Bufabc Xinvfile set ft=vim', 'E216:') augroup! Test " Execute all autocmds call assert_fails('doautocmd * BufEnter', 'E217:') @@ -2999,9 +2999,9 @@ endfunc " Test for deep nesting of autocmds func Test_autocmd_deep_nesting() - autocmd BufEnter Xfile doautocmd BufEnter Xfile - call assert_fails('doautocmd BufEnter Xfile', 'E218:') - autocmd! BufEnter Xfile + autocmd BufEnter Xdeepfile doautocmd BufEnter Xdeepfile + call assert_fails('doautocmd BufEnter Xdeepfile', 'E218:') + autocmd! BufEnter Xdeepfile endfunc " Tests for SigUSR1 autocmd event, which is only available on posix systems. |