From 29ec44dfc14f65ec5de94ccf1f2ccfeca98cbbb7 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Wed, 10 Jun 2026 00:38:35 -0400 Subject: [PATCH] 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 https://github.com/vim/vim/commit/b2a8df35e8d708e0247875730f70a254855af0f1 Co-authored-by: Christian Brabandt --- test/old/testdir/test_registers.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/old/testdir/test_registers.vim b/test/old/testdir/test_registers.vim index 720ce34ebc..6e6049fc6d 100644 --- a/test/old/testdir/test_registers.vim +++ b/test/old/testdir/test_registers.vim @@ -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)