Mercurial > vim
diff src/testdir/test_vim9_script.vim @ 29970:d891115c0aea v9.0.0323
patch 9.0.0323: using common name in tests leads to flaky tests
Commit: https://github.com/vim/vim/commit/3b0d70f4ff436cb144683dafd956e8a3ee485a90
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 29 22:31:20 2022 +0100
patch 9.0.0323: using common name in tests leads to flaky tests
Problem: Using common name in tests leads to flaky tests.
Solution: Rename files and directories to be more specific.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 Aug 2022 23:45:04 +0200 |
parents | 35cbea786334 |
children | d269dd3cd31d |
line wrap: on
line diff
--- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -3586,13 +3586,13 @@ def Run_test_no_redraw_when_restoring_cp export def Func() enddef END - mkdir('Xdir/autoload', 'p') - writefile(lines, 'Xdir/autoload/script.vim') + mkdir('Xnordir/autoload', 'p') + writefile(lines, 'Xnordir/autoload/script.vim') lines =<< trim END vim9script set cpo+=M - exe 'set rtp^=' .. getcwd() .. '/Xdir' + exe 'set rtp^=' .. getcwd() .. '/Xnordir' au CmdlineEnter : ++once timer_start(0, (_) => script#Func()) setline(1, 'some text') END @@ -3605,7 +3605,7 @@ def Run_test_no_redraw_when_restoring_cp term_sendkeys(buf, "\<Esc>u") g:StopVimInTerminal(buf) delete('XTest_redraw_cpo') - delete('Xdir', 'rf') + delete('Xnordir', 'rf') enddef func Test_reject_declaration()