patch 9.2.0303: tests: zip plugin tests don't check for warning message properly

Commit: 
https://github.com/vim/vim/commit/a1f4259e68235e4c8e154842a392d83f3301d2f3
Author: zeertzjq <[email protected]>
Date:   Sun Apr 5 16:41:15 2026 +0000

    patch 9.2.0303: tests: zip plugin tests don't check for warning message 
properly
    
    Problem:  zip plugin tests may match messages from previous test cases
              when checking for warning message.
    Solution: Clear messages at the start of these tests (zeertzjq).
    
    closes: #19926
    
    Signed-off-by: zeertzjq <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/testdir/test_plugin_zip.vim b/src/testdir/test_plugin_zip.vim
index 6d7764348..3d39e24ef 100644
--- a/src/testdir/test_plugin_zip.vim
+++ b/src/testdir/test_plugin_zip.vim
@@ -257,6 +257,7 @@ def g:Test_zip_fname_evil_path()
   # needed for writing the zip file
   CheckExecutable zip
 
+  messages clear
   CopyZipFile("evil.zip")
   defer delete("X.zip")
   e X.zip
@@ -280,6 +281,7 @@ def g:Test_zip_fname_evil_path2()
   # needed for writing the zip file
   CheckExecutable zip
 
+  messages clear
   CopyZipFile("evil.zip")
   defer delete("X.zip")
   e X.zip
@@ -302,6 +304,7 @@ def g:Test_zip_fname_evil_path3()
   # needed for writing the zip file
   CheckExecutable zip
 
+  messages clear
   CopyZipFile("evil.zip")
   defer delete("X.zip")
   e X.zip
diff --git a/src/version.c b/src/version.c
index ba00c5a7b..71f8a287d 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 */
+/**/
+    303,
 /**/
     302,
 /**/

-- 
-- 
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/E1w9f6z-006Xgd-H9%40256bit.org.

Raspunde prin e-mail lui