patch 8.2.4507: test fails because of new error message v8.2.4507
authorBram Moolenaar <Bram@vim.org>
Fri, 4 Mar 2022 23:22:27 +0000 (23:22 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 4 Mar 2022 23:22:27 +0000 (23:22 +0000)
Problem:    Test fails because of new error message.
Solution:   Avoid the test fails.

src/testdir/test_vim9_cmd.vim
src/version.c

index 8a51eac9ae0971c6e2c907cc279795805f379f70..92b834cb24f4b50486a04ce315e93a2516f7f411 100644 (file)
@@ -1834,14 +1834,18 @@ def Test_no_space_after_command()
       g #pat#cmd
   END
   v9.CheckDefAndScriptFailure(lines, 'E1242:', 1)
+
+  new
+  setline(1, 'some pat')
   lines =<< trim END
-      g#pat#cmd
+      g#pat#print
   END
   v9.CheckDefAndScriptSuccess(lines)
   lines =<< trim END
-      g# pat#cmd
+      g# pat#print
   END
   v9.CheckDefAndScriptSuccess(lines)
+  bwipe!
 
   lines =<< trim END
       s /pat/repl
index 12ea55670d68fa4f60b7f7407ad389b9f86048ca..2e22a77f8774afcba44fb777fbfdceb34d22df16 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4507,
 /**/
     4506,
 /**/