# HG changeset patch # User Bram Moolenaar # Date 1669560304 -3600 # Node ID 1d3caf811eb5c1dc24013a72bf2fca48e49e9af6 # Parent 44fac9d1b2ff42b4588e0305e60f390e19333dbf patch 9.0.0958: messages test is flaky Commit: https://github.com/vim/vim/commit/19cf525c20f9915ffcddda35c27608528f6af047 Author: Bram Moolenaar 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. diff --git a/src/testdir/dumps/Test_verbose_system_1.vim b/src/testdir/dumps/Test_verbose_system_1.vim --- 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 diff --git a/src/testdir/dumps/Test_verbose_system_2.vim b/src/testdir/dumps/Test_verbose_system_2.vim --- 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 diff --git a/src/testdir/test_messages.vim b/src/testdir/test_messages.vim --- 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', {}) diff --git a/src/version.c b/src/version.c --- 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,