summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_vim9_cmd.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-02 21:55:50 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-02 21:55:50 +0100
commitb18b49699776485150b71626069a40d12d2c5590 (patch)
treee583af125f2624cedd5420ba218f9628b122e209 /src/testdir/test_vim9_cmd.vim
parentf5724376ab7362b5a98eaa8a331d663ef722c2a2 (diff)
patch 9.0.0363: common names in test files causes tests to be flakyv9.0.0363
Problem: Common names in test files causes tests to be flaky. Solution: Use more specific names.
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r--src/testdir/test_vim9_cmd.vim26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim
index b9d8adb404..636769d3ab 100644
--- a/src/testdir/test_vim9_cmd.vim
+++ b/src/testdir/test_vim9_cmd.vim
@@ -931,11 +931,11 @@ func Test_command_modifier_confirm()
let lines =<< trim END
call setline(1, 'changed')
def Getout()
- confirm write Xfile
+ confirm write Xcmodfile
enddef
END
call writefile(lines, 'Xconfirmscript')
- call writefile(['empty'], 'Xfile')
+ call writefile(['empty'], 'Xcmodfile')
let buf = RunVimInTerminal('-S Xconfirmscript', {'rows': 8})
call term_sendkeys(buf, ":call Getout()\n")
call WaitForAssert({-> assert_match('(Y)es, \[N\]o: ', term_getline(buf, 8))}, 1000)
@@ -945,9 +945,9 @@ func Test_command_modifier_confirm()
call TermWait(buf)
call StopVimInTerminal(buf)
- call assert_equal(['changed'], readfile('Xfile'))
- call delete('Xfile')
- call delete('.Xfile.swp') " in case Vim was killed
+ call assert_equal(['changed'], readfile('Xcmodfile'))
+ call delete('Xcmodfile')
+ call delete('.Xcmodfile.swp') " in case Vim was killed
call delete('Xconfirmscript')
endfunc
@@ -1065,13 +1065,13 @@ def Test_command_modifier_other()
edit Xsomefile
bwipe!
- au BufNewFile Xfile g:readFile = 1
+ au BufNewFile Xcmofile g:readFile = 1
g:readFile = 0
- edit Xfile
+ edit Xcmofile
assert_equal(1, g:readFile)
bwipe!
g:readFile = 0
- noautocmd edit Xfile
+ noautocmd edit Xcmofile
assert_equal(0, g:readFile)
au! BufNewFile
unlet g:readFile
@@ -1407,7 +1407,7 @@ def Test_star_command()
enddef
def Test_cmd_argument_without_colon()
- new Xfile
+ new Xawcfile
setline(1, ['a', 'b', 'c', 'd'])
write
edit +3 %
@@ -1415,7 +1415,7 @@ def Test_cmd_argument_without_colon()
edit +/a %
assert_equal(1, getcurpos()[1])
bwipe
- delete('Xfile')
+ delete('Xawcfile')
enddef
def Test_ambiguous_user_cmd()
@@ -1882,7 +1882,7 @@ def Test_redir_to_var()
var text: string
redir => text
echo 'hello'
- redir > Xfile
+ redir > Xnopfile
redir END
END
v9.CheckDefFailure(lines, 'E1092:')
@@ -2025,10 +2025,10 @@ enddef
" Test for the 'previewpopup' option
def Test_previewpopup()
set previewpopup=height:10,width:60
- pedit Xfile
+ pedit Xppfile
var id = popup_findpreview()
assert_notequal(id, 0)
- assert_match('Xfile', popup_getoptions(id).title)
+ assert_match('Xppfile', popup_getoptions(id).title)
popup_clear()
set previewpopup&
enddef