vim-patch:8.1.0506: modeline test fails when run by root

Problem:    Modeline test fails when run by root.
Solution:   Set 'modeline' for the test. (James McCoy, closes vim/vim#3592)
9691f82f86

N/A patches:

vim-patch:8.1.0208: file left behind after running individual test
This commit is contained in:
Jan Edmund Lazo 2019-05-25 15:21:09 -04:00 committed by James McCoy
parent 6683cb60b8
commit 5cca6f61bb
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB

View File

@ -1,7 +1,7 @@
" Tests for parsing the modeline.
func Test_modeline_invalid()
" This was reading before allocated memory.
" This was reading allocated memory in the past.
call writefile(['vi:0', 'nothing'], 'Xmodeline')
let modeline = &modeline
set modeline