mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.0639: MS-Windows: messages test still fails
Problem: MS-Windows: messages test still fails.
Solution: Filter out the maintainer message.
49b2fb36ca
This commit is contained in:
parent
bbaf721fc3
commit
7af8de0dab
@ -1,20 +1,16 @@
|
|||||||
" Tests for :messages, :echomsg, :echoerr
|
" Tests for :messages, :echomsg, :echoerr
|
||||||
|
|
||||||
function Test_messages()
|
source shared.vim
|
||||||
|
|
||||||
|
func Test_messages()
|
||||||
let oldmore = &more
|
let oldmore = &more
|
||||||
try
|
try
|
||||||
set nomore
|
set nomore
|
||||||
" Avoid the "message maintainer" line.
|
|
||||||
let $LANG = ''
|
|
||||||
let $LC_ALL = ''
|
|
||||||
let $LC_MESSAGES = ''
|
|
||||||
let $LC_COLLATE = ''
|
|
||||||
|
|
||||||
let arr = map(range(10), '"hello" . v:val')
|
let arr = map(range(10), '"hello" . v:val')
|
||||||
for s in arr
|
for s in arr
|
||||||
echomsg s | redraw
|
echomsg s | redraw
|
||||||
endfor
|
endfor
|
||||||
let result = ''
|
|
||||||
|
|
||||||
" get last two messages
|
" get last two messages
|
||||||
redir => result
|
redir => result
|
||||||
@ -25,22 +21,17 @@ function Test_messages()
|
|||||||
|
|
||||||
" clear messages without last one
|
" clear messages without last one
|
||||||
1messages clear
|
1messages clear
|
||||||
redir => result
|
let msg_list = GetMessages()
|
||||||
redraw | messages
|
|
||||||
redir END
|
|
||||||
let msg_list = split(result, "\n")
|
|
||||||
call assert_equal(['hello9'], msg_list)
|
call assert_equal(['hello9'], msg_list)
|
||||||
|
|
||||||
" clear all messages
|
" clear all messages
|
||||||
messages clear
|
messages clear
|
||||||
redir => result
|
let msg_list = GetMessages()
|
||||||
redraw | messages
|
call assert_equal([], msg_list)
|
||||||
redir END
|
|
||||||
call assert_equal('', result)
|
|
||||||
finally
|
finally
|
||||||
let &more = oldmore
|
let &more = oldmore
|
||||||
endtry
|
endtry
|
||||||
endfunction
|
endfunc
|
||||||
|
|
||||||
" Patch 7.4.1696 defined the "clearmode()" command for clearing the mode
|
" Patch 7.4.1696 defined the "clearmode()" command for clearing the mode
|
||||||
" indicator (e.g., "-- INSERT --") when ":stopinsert" is invoked. Message
|
" indicator (e.g., "-- INSERT --") when ":stopinsert" is invoked. Message
|
||||||
|
Loading…
Reference in New Issue
Block a user