]> granicus.if.org Git - vim/commitdiff
patch 8.1.1052: test for CTRL-C message sometimes fails v8.1.1052
authorBram Moolenaar <Bram@vim.org>
Mon, 25 Mar 2019 22:16:34 +0000 (23:16 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 25 Mar 2019 22:16:34 +0000 (23:16 +0100)
Problem:    test for CTRL-C message sometimes fails
Solution:   Make sure there are no changed buffers.

src/testdir/test_normal.vim
src/version.c

index 4c63bb8ab0b5e6850b1751e8b5042d97b46186c4..19e68116c1898893bf8219a42b29b663c5155145 100644 (file)
@@ -2546,11 +2546,16 @@ func Test_nv_hat_count()
 endfunc
 
 func Test_message_when_using_ctrl_c()
+  " Make sure no buffers are changed.
+  %bwipe!
+
   exe "normal \<C-C>"
   call assert_match("Type  :qa  and press <Enter> to exit Vim", Screenline(&lines))
+
   new
   cal setline(1, 'hi!')
   exe "normal \<C-C>"
   call assert_match("Type  :qa!  and press <Enter> to abandon all changes and exit Vim", Screenline(&lines))
+
   bwipe!
 endfunc
index 13db4015e844df5b92daa4b2f88efe7ffc7f2661..1f0fb6b2540c6ebcea38d461092eea6784080ffe 100644 (file)
@@ -775,6 +775,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1052,
 /**/
     1051,
 /**/