]> granicus.if.org Git - vim/commitdiff
patch 8.1.2069: test for SafeStateAgain may still fail v8.1.2069
authorBram Moolenaar <Bram@vim.org>
Sun, 22 Sep 2019 21:24:13 +0000 (23:24 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 22 Sep 2019 21:24:13 +0000 (23:24 +0200)
Problem:    Test for SafeStateAgain may still fail.
Solution:   Send another message to trigger SafeStateAgain.

src/testdir/test_autocmd.vim
src/version.c

index 1f901a9ffa6a2805a9d976d288d9784e54c77fb5..f2c9af50f872655c576049a16e07c63d54a33e4c 100644 (file)
@@ -2250,7 +2250,9 @@ func Test_autocmd_SafeState()
   call WaitForAssert({-> assert_match('^xxxx', term_getline(buf, 6))}, 1000)
 
   call term_sendkeys(buf, ":let g:again = ''\<CR>:call CallTimer()\<CR>")
-  call term_wait(buf, 50)
+  call term_wait(buf)
+  call term_sendkeys(buf, ":\<CR>")
+  call term_wait(buf)
   call term_sendkeys(buf, ":echo g:again\<CR>")
   call WaitForAssert({-> assert_match('xtx', term_getline(buf, 6))}, 1000)
 
index 678bc13d407dc97ae88a807c65b4c944b08ed70f..bfe483e28a525e6b2275b8e87c7063590bb5da89 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2069,
 /**/
     2068,
 /**/