Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
29996:e37754a13778 | 29997:98f5a0618a77 |
---|---|
139 call assert_fails('bdelete 5', 'E516:') | 139 call assert_fails('bdelete 5', 'E516:') |
140 call assert_fails('1,1bdelete 1 2', 'E488:') | 140 call assert_fails('1,1bdelete 1 2', 'E488:') |
141 call assert_fails('bdelete \)', 'E55:') | 141 call assert_fails('bdelete \)', 'E55:') |
142 | 142 |
143 " Deleting a unlisted and unloaded buffer | 143 " Deleting a unlisted and unloaded buffer |
144 edit Xfile1 | 144 edit Xbdelfile1 |
145 let bnr = bufnr() | 145 let bnr = bufnr() |
146 set nobuflisted | 146 set nobuflisted |
147 enew | 147 enew |
148 call assert_fails('bdelete ' .. bnr, 'E516:') | 148 call assert_fails('bdelete ' .. bnr, 'E516:') |
149 | 149 |
313 endfunc | 313 endfunc |
314 | 314 |
315 " Test for trying to load a buffer with text locked | 315 " Test for trying to load a buffer with text locked |
316 " <C-\>e in the command line is used to lock the text | 316 " <C-\>e in the command line is used to lock the text |
317 func Test_load_buf_with_text_locked() | 317 func Test_load_buf_with_text_locked() |
318 new Xfile1 | 318 new Xlockfile1 |
319 edit Xfile2 | 319 edit Xlockfile2 |
320 let cmd = ":\<C-\>eexecute(\"normal \<C-O>\")\<CR>\<C-C>" | 320 let cmd = ":\<C-\>eexecute(\"normal \<C-O>\")\<CR>\<C-C>" |
321 call assert_fails("call feedkeys(cmd, 'xt')", 'E565:') | 321 call assert_fails("call feedkeys(cmd, 'xt')", 'E565:') |
322 %bw! | 322 %bw! |
323 endfunc | 323 endfunc |
324 | 324 |