comparison 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
comparison
equal deleted inserted replaced
29949:7553830b0994 29950:c8b1a683323c
54 func Test_acd_win_execute() 54 func Test_acd_win_execute()
55 let cwd = getcwd() 55 let cwd = getcwd()
56 set acd 56 set acd
57 call test_autochdir() 57 call test_autochdir()
58 58
59 call mkdir('Xfile') 59 call mkdir('XacdDir')
60 let winid = win_getid() 60 let winid = win_getid()
61 new Xfile/file 61 new XacdDir/file
62 call assert_match('testdir.Xfile$', getcwd()) 62 call assert_match('testdir.XacdDir$', getcwd())
63 cd .. 63 cd ..
64 call assert_match('testdir$', getcwd()) 64 call assert_match('testdir$', getcwd())
65 call win_execute(winid, 'echo') 65 call win_execute(winid, 'echo')
66 call assert_match('testdir$', getcwd()) 66 call assert_match('testdir$', getcwd())
67 67
68 bwipe! 68 bwipe!
69 set noacd 69 set noacd
70 call chdir(cwd) 70 call chdir(cwd)
71 call delete('Xfile', 'rf') 71 call delete('XacdDir', 'rf')
72 endfunc 72 endfunc
73 73
74 func Test_verbose_pwd() 74 func Test_verbose_pwd()
75 let cwd = getcwd() 75 let cwd = getcwd()
76 call test_autochdir() 76 call test_autochdir()