mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
vim-patch:7.4.1978
Problem: Large file test does not delete its output.
Solution: Delete the output. Check size properly when possible. (Ken Takata)
c5af40ae64
This commit is contained in:
@@ -22,9 +22,13 @@ func Test_largefile()
|
|||||||
normal 50%
|
normal 50%
|
||||||
normal gg
|
normal gg
|
||||||
w
|
w
|
||||||
" Check if the file size is larger than 2^31 - 1 bytes.
|
" Check if the file size is 4,000,000,000 bytes.
|
||||||
" Note that getfsize() returns -2 if a Number is 32 bits.
|
|
||||||
let fsize=getfsize(fname)
|
let fsize=getfsize(fname)
|
||||||
call assert_true(fsize > 2147483647 || fsize == -2)
|
if has('num64')
|
||||||
"call delete(fname)
|
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
|
endfunc
|
||||||
|
@@ -466,7 +466,7 @@ static const int included_patches[] = {
|
|||||||
1981,
|
1981,
|
||||||
1980,
|
1980,
|
||||||
// 1979,
|
// 1979,
|
||||||
// 1978,
|
1978,
|
||||||
1977,
|
1977,
|
||||||
1976,
|
1976,
|
||||||
1975,
|
1975,
|
||||||
|
Reference in New Issue
Block a user