vim/backport-patch-9.1.1120-fix-Test_registers-fails.patch
wjiang 55ca8ff7c0 fix some tests failed
(cherry picked from commit 1f3ad3723557c2acb8a672fe0743cbc9e3eceb21)
2025-04-25 14:49:54 +08:00

30 lines
949 B
Diff

From 44c1c04ddb000bd03c6e8851dcdef07fd8c329ff Mon Sep 17 00:00:00 2001
From: Christian Brabandt <cb@256bit.org>
Date: Mon, 17 Feb 2025 22:26:00 +0100
Subject: [PATCH] patch 9.1.1120: tests: Test_registers fails
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 | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/testdir/test_registers.vim b/src/testdir/test_registers.vim
index e0b9aa2..e748e8c 100644
--- a/src/testdir/test_registers.vim
+++ b/src/testdir/test_registers.vim
@@ -869,6 +869,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!"
--
2.33.0