]> granicus.if.org Git - vim/commitdiff
patch 8.2.0402: setting local instead of global flag v8.2.0402
authorBram Moolenaar <Bram@vim.org>
Wed, 18 Mar 2020 20:10:44 +0000 (21:10 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 18 Mar 2020 20:10:44 +0000 (21:10 +0100)
Problem:    Setting local instead of global flag.
Solution:   Prepend "g:" to "test_is_flaky".

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

index 14863f9ae4014e2b05b7f70a261c884387d7ef3b..8ea708a39fb5ddfa062f7e640cd3f705a99f4289 100644 (file)
@@ -25,7 +25,7 @@ func VerifyScreenDump(buf, filename, options, ...)
   let testfile = 'failed/' . a:filename . '.dump'
 
   " Starting a terminal to make a screendump is always considered flaky.
-  let test_is_flaky = 1
+  let g:test_is_flaky = 1
 
   " Redraw to execute the code that updates the screen.  Otherwise we get the
   " text and attributes only from the internal buffer.
index c9e0ac528085381a6eabafc82d20d3e6a20a7497..dd1f71dc0d9b65205118e337e26a2af6b5dc035b 100644 (file)
@@ -94,7 +94,7 @@ func RunVimInTerminal(arguments, options)
   endtry
 
   " Starting a terminal to run Vim is always considered flaky.
-  let test_is_flaky = 1
+  let g:test_is_flaky = 1
 
   return buf
 endfunc
@@ -102,7 +102,7 @@ endfunc
 " Stop a Vim running in terminal buffer "buf".
 func StopVimInTerminal(buf)
   " Using a terminal to run Vim is always considered flaky.
-  let test_is_flaky = 1
+  let g:test_is_flaky = 1
 
   call assert_equal("running", term_getstatus(a:buf))
 
index 84c46cf91e213032fc0ee4a8c057dc0ec3846f9d..e5dec890c6e40cc70afd469abe9ad01b74c9b662 100644 (file)
@@ -1869,7 +1869,7 @@ func Test_Changed_FirstTime()
   CheckFeature terminal
   CheckNotGui
   " Starting a terminal to run Vim is always considered flaky.
-  let test_is_flaky = 1
+  let g:test_is_flaky = 1
 
   " Prepare file for TextChanged event.
   call writefile([''], 'Xchanged.txt')
index b18307b5eaf701191ae7a12569937f0fcf447bc0..c76d3126994a13720b032e762f8c2d19b8339bcd 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    402,
 /**/
     401,
 /**/