1
0
forked from aniani/vim

patch 8.2.0402: setting local instead of global flag

Problem:    Setting local instead of global flag.
Solution:   Prepend "g:" to "test_is_flaky".
This commit is contained in:
Bram Moolenaar
2020-03-18 21:10:44 +01:00
parent 8dfcce3a78
commit 30d53e2c11
4 changed files with 6 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ func VerifyScreenDump(buf, filename, options, ...)
let testfile = 'failed/' . a:filename . '.dump' let testfile = 'failed/' . a:filename . '.dump'
" Starting a terminal to make a screendump is always considered flaky. " 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 " Redraw to execute the code that updates the screen. Otherwise we get the
" text and attributes only from the internal buffer. " text and attributes only from the internal buffer.

View File

@@ -94,7 +94,7 @@ func RunVimInTerminal(arguments, options)
endtry endtry
" Starting a terminal to run Vim is always considered flaky. " Starting a terminal to run Vim is always considered flaky.
let test_is_flaky = 1 let g:test_is_flaky = 1
return buf return buf
endfunc endfunc
@@ -102,7 +102,7 @@ endfunc
" Stop a Vim running in terminal buffer "buf". " Stop a Vim running in terminal buffer "buf".
func StopVimInTerminal(buf) func StopVimInTerminal(buf)
" Using a terminal to run Vim is always considered flaky. " 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)) call assert_equal("running", term_getstatus(a:buf))

View File

@@ -1869,7 +1869,7 @@ func Test_Changed_FirstTime()
CheckFeature terminal CheckFeature terminal
CheckNotGui CheckNotGui
" Starting a terminal to run Vim is always considered flaky. " 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. " Prepare file for TextChanged event.
call writefile([''], 'Xchanged.txt') call writefile([''], 'Xchanged.txt')

View File

@@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
402,
/**/ /**/
401, 401,
/**/ /**/