mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.0.0862: file size test fails on MS-Windows
Problem: File size test fails on MS-Windows. Solution: Set fileformat after opening new buffer. Strip CR.
This commit is contained in:
@@ -11,17 +11,18 @@ func Test_File_Size()
|
|||||||
if !executable('cksum')
|
if !executable('cksum')
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
set belloff=all fileformat=unix undolevels=-1
|
|
||||||
|
|
||||||
new
|
new
|
||||||
|
set belloff=all fileformat=unix undolevels=-1
|
||||||
for i in range(1, 2000000, 100)
|
for i in range(1, 2000000, 100)
|
||||||
call append(i, range(i, i + 99))
|
call append(i, range(i, i + 99))
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
1delete
|
1delete
|
||||||
w! Xtest
|
w! Xtest
|
||||||
let l = systemlist('cksum Xtest')
|
let res = systemlist('cksum Xtest')[0]
|
||||||
call assert_equal('3678979763 14888896 Xtest', l[0])
|
let res = substitute(res, "\r", "", "")
|
||||||
|
call assert_equal('3678979763 14888896 Xtest', res)
|
||||||
|
|
||||||
enew!
|
enew!
|
||||||
call delete('Xtest')
|
call delete('Xtest')
|
||||||
|
@@ -769,6 +769,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
862,
|
||||||
/**/
|
/**/
|
||||||
861,
|
861,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user