Problem: Modeline test fails when run by root.
Solution: Set 'modeline' for the test. (James McCoy, closes #3592)
" 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
call assert_fails('split Xmodeline', 'E518:')
+ let &modeline = modeline
bwipe!
call delete('Xmodeline')
endfunc
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 506,
/**/
505,
/**/