Permalink
Browse files

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.
  • Loading branch information...
brammool committed Aug 4, 2017
1 parent 4a137b4 commit 07c043af5f054c7dfeb676414f8fa6aeda8f9c2b
Showing with 6 additions and 3 deletions.
  1. +4 −3 src/testdir/test_file_size.vim
  2. +2 −0 src/version.c
@@ -11,17 +11,18 @@ func Test_File_Size()
if !executable('cksum')
return
endif
set belloff=all fileformat=unix undolevels=-1
new
set belloff=all fileformat=unix undolevels=-1
for i in range(1, 2000000, 100)
call append(i, range(i, i + 99))
endfor
1delete
w! Xtest
let l = systemlist('cksum Xtest')
call assert_equal('3678979763 14888896 Xtest', l[0])
let res = systemlist('cksum Xtest')[0]
let res = substitute(res, "\r", "", "")
call assert_equal('3678979763 14888896 Xtest', res)
enew!
call delete('Xtest')
View
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
862,
/**/
861,
/**/

0 comments on commit 07c043a

Please sign in to comment.