summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_autochdir.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-08-29 11:02:59 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-29 11:02:59 +0100
commite7cda97b6b578b33a42de0d27ac2876337c641ca (patch)
treebb161b2253876f4b38b1bdd672b8203a3821166a /src/testdir/test_autochdir.vim
parent98d1069a9cc6f1b439be154aeae0ed32a598e855 (diff)
patch 9.0.0313: using common name in tests leads to flaky testsv9.0.0313
Problem: Using common name in tests leads to flaky tests. Solution: Rename files and directories to be more specific.
Diffstat (limited to 'src/testdir/test_autochdir.vim')
-rw-r--r--src/testdir/test_autochdir.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testdir/test_autochdir.vim b/src/testdir/test_autochdir.vim
index 36b4695827..332de8f2bf 100644
--- a/src/testdir/test_autochdir.vim
+++ b/src/testdir/test_autochdir.vim
@@ -56,10 +56,10 @@ func Test_acd_win_execute()
set acd
call test_autochdir()
- call mkdir('Xfile')
+ call mkdir('XacdDir')
let winid = win_getid()
- new Xfile/file
- call assert_match('testdir.Xfile$', getcwd())
+ new XacdDir/file
+ call assert_match('testdir.XacdDir$', getcwd())
cd ..
call assert_match('testdir$', getcwd())
call win_execute(winid, 'echo')
@@ -68,7 +68,7 @@ func Test_acd_win_execute()
bwipe!
set noacd
call chdir(cwd)
- call delete('Xfile', 'rf')
+ call delete('XacdDir', 'rf')
endfunc
func Test_verbose_pwd()