]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0303: tests: zip plugin tests don't check for warning message properly v9.2.0303
authorzeertzjq <zeertzjq@outlook.com>
Sun, 5 Apr 2026 16:41:15 +0000 (16:41 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 5 Apr 2026 16:41:15 +0000 (16:41 +0000)
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 <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_plugin_zip.vim
src/version.c

index 6d77643482fe26de1e1c7f3f2f746e9b417e8194..3d39e24ef7d8229b6a7dbb1a7dfeec8378973388 100644 (file)
@@ -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
index ba00c5a7be73418ef9f617bce53a8345efec9712..71f8a287d9ec2855e212a93a507fd1d7c5645df7 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    303,
 /**/
     302,
 /**/