Skip to content

Commit 07c043a

Browse files
committed
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.
1 parent 4a137b4 commit 07c043a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/testdir/test_file_size.vim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,18 @@ func Test_File_Size()
1111
if !executable('cksum')
1212
return
1313
endif
14-
set belloff=all fileformat=unix undolevels=-1
1514

1615
new
16+
set belloff=all fileformat=unix undolevels=-1
1717
for i in range(1, 2000000, 100)
1818
call append(i, range(i, i + 99))
1919
endfor
2020

2121
1delete
2222
w! Xtest
23-
let l = systemlist('cksum Xtest')
24-
call assert_equal('3678979763 14888896 Xtest', l[0])
23+
let res = systemlist('cksum Xtest')[0]
24+
let res = substitute(res, "\r", "", "")
25+
call assert_equal('3678979763 14888896 Xtest', res)
2526

2627
enew!
2728
call delete('Xtest')

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
862,
772774
/**/
773775
861,
774776
/**/

0 commit comments

Comments
 (0)