changeset 31249:1d3caf811eb5 v9.0.0958

patch 9.0.0958: messages test is flaky Commit: https://github.com/vim/vim/commit/19cf525c20f9915ffcddda35c27608528f6af047 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 27 14:39:31 2022 +0000 patch 9.0.0958: messages test is flaky Problem: Messages test is flaky. Solution: Add a short delay.
author Bram Moolenaar <Bram@vim.org>
date Sun, 27 Nov 2022 15:45:04 +0100
parents 44fac9d1b2ff
children 65c361477a7d
files src/testdir/dumps/Test_verbose_system_1.vim src/testdir/dumps/Test_verbose_system_2.vim src/testdir/test_messages.vim src/version.c
diffstat 4 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/dumps/Test_verbose_system_1.vim
+++ b/src/testdir/dumps/Test_verbose_system_1.vim
@@ -1,3 +1,5 @@
 " Filter that removes the ever changing temp directory name from the screendump
 " that shows the system() command executed.
-1s+|t|m|p|/|.|.|.*| |+|t|m|p|/|x|x|x|x|x|x|x|/|1| |+
+" This should be on the first line, but if it isn't there ignore the error,
+" the screendump will then show the problem.
+1s+|t|m|p|/|.|.|.*| |+|t|m|p|/|x|x|x|x|x|x|x|/|1| |+e
--- a/src/testdir/dumps/Test_verbose_system_2.vim
+++ b/src/testdir/dumps/Test_verbose_system_2.vim
@@ -1,3 +1,5 @@
 " Filter that removes the ever changing temp directory name from the screendump
 " that shows the system() command executed.
-1s+|t|m|p|/|.|.|.*| |+|t|m|p|/|x|x|x|x|x|x|x|/|1| |+
+" This should be on the first line, but if it isn't there ignore the error,
+" the screendump will then show the problem.
+1s+|t|m|p|/|.|.|.*| |+|t|m|p|/|x|x|x|x|x|x|x|/|1| |+e
--- a/src/testdir/test_messages.vim
+++ b/src/testdir/test_messages.vim
@@ -349,7 +349,7 @@ func Test_echo_verbose_system()
 
   " display a page and go back, results in exactly the same view
   call term_sendkeys(buf, ' ')
-  call TermWait(buf)
+  call TermWait(buf, 50)
   call term_sendkeys(buf, 'b')
   call VerifyScreenDump(buf, 'Test_verbose_system_1', {})
 
@@ -362,7 +362,7 @@ func Test_echo_verbose_system()
   call VerifyScreenDump(buf, 'Test_verbose_system_2', {})
 
   call term_sendkeys(buf, ' ')
-  call TermWait(buf)
+  call TermWait(buf, 50)
   call term_sendkeys(buf, 'b')
   call VerifyScreenDump(buf, 'Test_verbose_system_2', {})
 
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    958,
+/**/
     957,
 /**/
     956,