]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1120: tests: Test_registers fails v9.1.1120
authorChristian Brabandt <cb@256bit.org>
Mon, 17 Feb 2025 21:26:00 +0000 (22:26 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 17 Feb 2025 21:27:45 +0000 (22:27 +0100)
Problem:  tests: Test_registers fails
          (T.J. Townsend, after v9.1.1115)
Solution: require clipboard feature

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

index 13127022666e0435902a8c0445690888e60c22c4..ee59ecb3042300047f75989b56e81f87edaa4b56 100644 (file)
@@ -1104,6 +1104,7 @@ endfunc
 
 " This caused use-after-free
 func Test_register_redir_display()
+  CheckFeature clipboard
   " don't touch the clipboard, so only perform this, when the clipboard is not working
   if has("clipboard_working")
     throw "Skipped: skip touching the clipboard register!"
index 7ba180e30e5f3d706cb5abd9c7cd82d6c1b92e39..33562db965bef2f0661937793b80bb5fd8455ee0 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1120,
 /**/
     1119,
 /**/