]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0944: tests: test_registers fails when not run under X11 v9.1.0944
authorChristian Brabandt <cb@256bit.org>
Wed, 18 Dec 2024 19:38:55 +0000 (20:38 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 18 Dec 2024 19:40:48 +0000 (20:40 +0100)
Problem:  tests: test_registers fails when not run under X11
Solution: filter out warning message

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_registers.vim
src/version.c

index 0888e60dcb679eec011a02535f976264f39250cb..36fc3046c25287a790243ec219d7c168baaa2904 100644 (file)
@@ -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\n', '', '')
     let b = execute('sandbox registers')
 
     call assert_equal(a, b)
index 8bd59e3d95d270c6cedd9f508905c3debd1efe22..ebaca6e8fc111dbf83d34f9a92a1fef97582bc28 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    944,
 /**/
     943,
 /**/