comparison 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
comparison
equal deleted inserted replaced
29969:5f2d38cacd6c 29970:d891115c0aea
3584 var lines =<< trim END 3584 var lines =<< trim END
3585 vim9script 3585 vim9script
3586 export def Func() 3586 export def Func()
3587 enddef 3587 enddef
3588 END 3588 END
3589 mkdir('Xdir/autoload', 'p') 3589 mkdir('Xnordir/autoload', 'p')
3590 writefile(lines, 'Xdir/autoload/script.vim') 3590 writefile(lines, 'Xnordir/autoload/script.vim')
3591 3591
3592 lines =<< trim END 3592 lines =<< trim END
3593 vim9script 3593 vim9script
3594 set cpo+=M 3594 set cpo+=M
3595 exe 'set rtp^=' .. getcwd() .. '/Xdir' 3595 exe 'set rtp^=' .. getcwd() .. '/Xnordir'
3596 au CmdlineEnter : ++once timer_start(0, (_) => script#Func()) 3596 au CmdlineEnter : ++once timer_start(0, (_) => script#Func())
3597 setline(1, 'some text') 3597 setline(1, 'some text')
3598 END 3598 END
3599 writefile(lines, 'XTest_redraw_cpo') 3599 writefile(lines, 'XTest_redraw_cpo')
3600 var buf = g:RunVimInTerminal('-S XTest_redraw_cpo', {'rows': 6}) 3600 var buf = g:RunVimInTerminal('-S XTest_redraw_cpo', {'rows': 6})
3603 3603
3604 # clean up 3604 # clean up
3605 term_sendkeys(buf, "\<Esc>u") 3605 term_sendkeys(buf, "\<Esc>u")
3606 g:StopVimInTerminal(buf) 3606 g:StopVimInTerminal(buf)
3607 delete('XTest_redraw_cpo') 3607 delete('XTest_redraw_cpo')
3608 delete('Xdir', 'rf') 3608 delete('Xnordir', 'rf')
3609 enddef 3609 enddef
3610 3610
3611 func Test_reject_declaration() 3611 func Test_reject_declaration()
3612 CheckScreendump 3612 CheckScreendump
3613 call Run_test_reject_declaration() 3613 call Run_test_reject_declaration()