mirror of
https://github.com/neovim/neovim.git
synced 2026-06-15 08:13:45 +00:00
vim-patch:9.1.0944: tests: test_registers fails when not run under X11
Problem: tests: test_registers fails when not run under X11
Solution: filter out warning message
b2a8df35e8
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -57,6 +57,9 @@ func Test_display_registers()
|
||||
|
||||
" these commands work in the sandbox
|
||||
let a = execute('sandbox display')
|
||||
" When X11 connection is not available, there is a warning W23
|
||||
" filter this out (we could also run the :display comamand twice)
|
||||
let a = substitute(a, 'W23.*0\n', '', '')
|
||||
let b = execute('sandbox registers')
|
||||
|
||||
call assert_equal(a, b)
|
||||
|
||||
Reference in New Issue
Block a user