mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 14:56:08 +00:00
vim-patch:9.0.0216: undo earlier test sometimes fails on MS-Windows (#19790)
Problem: Undo earlier test sometimes fails on MS-Windows.
Solution: Use another file name.
cce293f87b
This commit is contained in:
@@ -336,7 +336,7 @@ func Test_undofile_earlier()
|
|||||||
" create undofile with timestamps older than Vim startup time.
|
" create undofile with timestamps older than Vim startup time.
|
||||||
let t0 = localtime() - 43200
|
let t0 = localtime() - 43200
|
||||||
call test_settime(t0)
|
call test_settime(t0)
|
||||||
new Xfile
|
new XfileEarlier
|
||||||
call feedkeys("ione\<Esc>", 'xt')
|
call feedkeys("ione\<Esc>", 'xt')
|
||||||
set ul=100
|
set ul=100
|
||||||
call test_settime(t0 + 1)
|
call test_settime(t0 + 1)
|
||||||
@@ -350,12 +350,12 @@ func Test_undofile_earlier()
|
|||||||
bwipe!
|
bwipe!
|
||||||
" restore normal timestamps.
|
" restore normal timestamps.
|
||||||
call test_settime(0)
|
call test_settime(0)
|
||||||
new Xfile
|
new XfileEarlier
|
||||||
rundo Xundofile
|
rundo Xundofile
|
||||||
earlier 1d
|
earlier 1d
|
||||||
call assert_equal('', getline(1))
|
call assert_equal('', getline(1))
|
||||||
bwipe!
|
bwipe!
|
||||||
call delete('Xfile')
|
call delete('XfileEarlier')
|
||||||
call delete('Xundofile')
|
call delete('Xundofile')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user