Mercurial > vim
diff src/testdir/test_buffer.vim @ 29997:98f5a0618a77 v9.0.0336
patch 9.0.0336: tests are flaky because of using a common file name
Commit: https://github.com/vim/vim/commit/61abe7d8f827ec31f098e8abcdf58846b956ef16
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 21:46:08 2022 +0100
patch 9.0.0336: tests are flaky because of using a common file name
Problem: Tests are flaky because of using a common file name.
Solution: Rename files and directories to be more unique.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 30 Aug 2022 23:00:05 +0200 |
parents | c8b1a683323c |
children | ba5ca7c7d44c |
line wrap: on
line diff
--- a/src/testdir/test_buffer.vim +++ b/src/testdir/test_buffer.vim @@ -141,7 +141,7 @@ func Test_bdelete_cmd() call assert_fails('bdelete \)', 'E55:') " Deleting a unlisted and unloaded buffer - edit Xfile1 + edit Xbdelfile1 let bnr = bufnr() set nobuflisted enew @@ -315,8 +315,8 @@ endfunc " Test for trying to load a buffer with text locked " <C-\>e in the command line is used to lock the text func Test_load_buf_with_text_locked() - new Xfile1 - edit Xfile2 + new Xlockfile1 + edit Xlockfile2 let cmd = ":\<C-\>eexecute(\"normal \<C-O>\")\<CR>\<C-C>" call assert_fails("call feedkeys(cmd, 'xt')", 'E565:') %bw!