Mercurial > vim
diff src/testdir/test_autochdir.vim @ 29950:c8b1a683323c v9.0.0313
patch 9.0.0313: using common name in tests leads to flaky tests
Commit: https://github.com/vim/vim/commit/e7cda97b6b578b33a42de0d27ac2876337c641ca
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 29 11:02:59 2022 +0100
patch 9.0.0313: 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 12:15:04 +0200 |
parents | d265246e6628 |
children | 0fe61fa4e5d1 |
line wrap: on
line diff
--- 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()