aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-31 23:01:01 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-01 09:28:39 -0500
commit7af8de0dab5069751940e40a27aa77c715f9e82c (patch)
tree29008cc75f7601e9db9351536da4a99b72e00377
parentbbaf721fc34008ca1d1e112392f16220d5dc2865 (diff)
downloadrneovim-7af8de0dab5069751940e40a27aa77c715f9e82c.tar.gz
rneovim-7af8de0dab5069751940e40a27aa77c715f9e82c.tar.bz2
rneovim-7af8de0dab5069751940e40a27aa77c715f9e82c.zip
vim-patch:8.2.0639: MS-Windows: messages test still fails
Problem: MS-Windows: messages test still fails. Solution: Filter out the maintainer message. https://github.com/vim/vim/commit/49b2fb36ca94be14b98caf86420863d9bbe81a24
-rw-r--r--src/nvim/testdir/test_messages.vim23
1 files changed, 7 insertions, 16 deletions
diff --git a/src/nvim/testdir/test_messages.vim b/src/nvim/testdir/test_messages.vim
index ca14494248..30239a90c2 100644
--- a/src/nvim/testdir/test_messages.vim
+++ b/src/nvim/testdir/test_messages.vim
@@ -1,20 +1,16 @@
" Tests for :messages, :echomsg, :echoerr
-function Test_messages()
+source shared.vim
+
+func Test_messages()
let oldmore = &more
try
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')
for s in arr
echomsg s | redraw
endfor
- let result = ''
" get last two messages
redir => result
@@ -25,22 +21,17 @@ function Test_messages()
" clear messages without last one
1messages clear
- redir => result
- redraw | messages
- redir END
- let msg_list = split(result, "\n")
+ let msg_list = GetMessages()
call assert_equal(['hello9'], msg_list)
" clear all messages
messages clear
- redir => result
- redraw | messages
- redir END
- call assert_equal('', result)
+ let msg_list = GetMessages()
+ call assert_equal([], msg_list)
finally
let &more = oldmore
endtry
-endfunction
+endfunc
" Patch 7.4.1696 defined the "clearmode()" command for clearing the mode
" indicator (e.g., "-- INSERT --") when ":stopinsert" is invoked. Message