Skip to content

Commit a1f4259

Browse files
zeertzjqchrisbra
authored andcommitted
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 <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent ab4ebb6 commit a1f4259

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/testdir/test_plugin_zip.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ def g:Test_zip_fname_evil_path()
257257
# needed for writing the zip file
258258
CheckExecutable zip
259259

260+
messages clear
260261
CopyZipFile("evil.zip")
261262
defer delete("X.zip")
262263
e X.zip
@@ -280,6 +281,7 @@ def g:Test_zip_fname_evil_path2()
280281
# needed for writing the zip file
281282
CheckExecutable zip
282283

284+
messages clear
283285
CopyZipFile("evil.zip")
284286
defer delete("X.zip")
285287
e X.zip
@@ -302,6 +304,7 @@ def g:Test_zip_fname_evil_path3()
302304
# needed for writing the zip file
303305
CheckExecutable zip
304306

307+
messages clear
305308
CopyZipFile("evil.zip")
306309
defer delete("X.zip")
307310
e X.zip

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
303,
737739
/**/
738740
302,
739741
/**/

0 commit comments

Comments
 (0)