0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00

patch 9.0.0216: undo earlier test sometimes fails on MS-Windows

Problem:    Undo earlier test sometimes fails on MS-Windows.
Solution:   Use another file name.
This commit is contained in:
Bram Moolenaar 2022-08-15 17:28:27 +01:00
parent 8a77d208ff
commit cce293f87b
2 changed files with 5 additions and 3 deletions

View File

@ -339,7 +339,7 @@ func Test_undofile_earlier()
" create undofile with timestamps older than Vim startup time.
let t0 = localtime() - 43200
call test_settime(t0)
new Xfile
new XfileEarlier
call feedkeys("ione\<Esc>", 'xt')
set ul=100
call test_settime(t0 + 1)
@ -353,12 +353,12 @@ func Test_undofile_earlier()
bwipe!
" restore normal timestamps.
call test_settime(0)
new Xfile
new XfileEarlier
rundo Xundofile
earlier 1d
call assert_equal('', getline(1))
bwipe!
call delete('Xfile')
call delete('XfileEarlier')
call delete('Xundofile')
endfunc

View File

@ -735,6 +735,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
216,
/**/
215,
/**/