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

patch 7.4.1978

Problem:    Large file test does not delete its output.
Solution:   Delete the output. Check size properly when possible. (Ken Takata)
This commit is contained in:
Bram Moolenaar 2016-07-01 21:49:06 +02:00
parent bde9810d61
commit c5af40ae64
2 changed files with 10 additions and 4 deletions

View File

@ -22,9 +22,13 @@ func Test_largefile()
normal 50%
normal gg
w
" Check if the file size is larger than 2^31 - 1 bytes.
" Note that getfsize() returns -2 if a Number is 32 bits.
" Check if the file size is 4,000,000,000 bytes.
let fsize=getfsize(fname)
call assert_true(fsize > 2147483647 || fsize == -2)
"call delete(fname)
if has('num64')
call assert_true(fsize == 4000000000)
else
" getfsize() returns -2 if a Number is 32 bits.
call assert_true(fsize == -2)
endif
call delete(fname)
endfunc

View File

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