Commit 1afd2fd0 authored by Jan Edmund Lazo's avatar Jan Edmund Lazo Committed by James McCoy

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)
https://github.com/vim/vim/commit/9691f82f862ed18c2e3e48f9d2cd902bb947f803

N/A patches:

vim-patch:8.1.0208: file left behind after running individual test

(cherry picked from commit 5cca6f61)
Signed-off-by: James McCoy's avatarJames McCoy <jamessan@debian.org>
parent 7494e2fc
" 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment