patch 9.1.2140: tests: Test_wayland_protocol_error_overflow() fails

Commit: 
https://github.com/vim/vim/commit/35c428b02c0b8cee77e65d2a560e3c0b4c526395
Author: Christian Brabandt <[email protected]>
Date:   Sat Feb 7 15:41:43 2026 +0000

    patch 9.1.2140: tests: Test_wayland_protocol_error_overflow() fails
    
    Problem:  tests: Test_wayland_protocol_error_overflow() fails
              (after v9.1.2139)
    Solution: try/catch the expected error
    
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/doc/version9.txt b/runtime/doc/version9.txt
index 989c7c07b..e2bc66be0 100644
--- a/runtime/doc/version9.txt
+++ b/runtime/doc/version9.txt
@@ -52523,4 +52523,9 @@ Problem:  Buffer overflow in :wlrestore command, caused 
by assuming
 Solution: Use correct buffer size (512 bytes) in vim_vsnprintf()
           to properly truncate long messages.
 
+Patch 9.1.2140
+Problem:  tests: Test_wayland_protocol_error_overflow() fails
+          (after v9.1.2139)
+Solution: try/catch the expected error
+
  vim:tw=78:ts=8:noet:ft=help:norl:fdm=manual:nofoldenable
diff --git a/src/testdir/test_wayland.vim b/src/testdir/test_wayland.vim
index c18b6b5d0..5b801c9a4 100644
--- a/src/testdir/test_wayland.vim
+++ b/src/testdir/test_wayland.vim
@@ -616,7 +616,10 @@ endfunc
 
 " Test for heap buffer overflow in wayland log handler
 func Test_wayland_protocol_error_overflow()
-  exe "wlrestore " .. repeat('X', 4096)
+  try
+    exe "wlrestore " .. repeat('X', 4096)
+  catch /^Vim(wlrestore):/
+  endtry
 endfunc
 
 " vim: shiftwidth=2 sts=2 expandtab
diff --git a/src/version.c b/src/version.c
index a892d87c7..e6b867cf6 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2140,
 /**/
     2139,
 /**/

-- 
-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vopPQ-000ebb-4Y%40256bit.org.

Raspunde prin e-mail lui