patch 9.1.0944: tests: test_registers fails when not run under X11

Commit: 
https://github.com/vim/vim/commit/b2a8df35e8d708e0247875730f70a254855af0f1
Author: Christian Brabandt <c...@256bit.org>
Date:   Wed Dec 18 20:38:55 2024 +0100

    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
    
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/test_registers.vim b/src/testdir/test_registers.vim
index 0888e60dc..36fc3046c 100644
--- a/src/testdir/test_registers.vim
+++ b/src/testdir/test_registers.vim
@@ -53,6 +53,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
', '', '')
     let b = execute('sandbox registers')
 
     call assert_equal(a, b)
diff --git a/src/version.c b/src/version.c
index 8bd59e3d9..ebaca6e8f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    944,
 /**/
     943,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1tNzyk-005Mqd-5X%40256bit.org.

Raspunde prin e-mail lui