Merge pull request #838 from ichizok/fix/tests

Mark flaky tests as pending when they failed
This commit is contained in:
Yee Cheng Chin
2019-01-27 02:42:51 -08:00
committed by GitHub
5 changed files with 9 additions and 20 deletions
+9
View File
@@ -370,6 +370,15 @@ for s:test in sort(s:tests)
if run_nr == 5 || prev_error == v:errors[0]
call add(total_errors, 'Flaky test failed too often, giving up')
let v:errors = total_errors
if has('gui_macvim')
" MacVim's currently doesn't always pass these tests. Make these
" tests pending for now before a more proper fix is implemented.
call extend(s:messages, [
\ 'Flaky test failed too often, giving up',
\ 'MacVim marked ' . s:test . ' as pending',
\ ])
let v:errors = []
endif
break
endif
-6
View File
@@ -4,12 +4,6 @@ if !has('channel')
finish
endif
if has('gui_macvim')
" MacVim's currently doesn't always pass these tests. Disable these tests
" for now before a more proper fix is implemented.
finish
endif
source shared.vim
let s:python = PythonProg()
-2
View File
@@ -142,7 +142,6 @@ func Test_getftype()
call delete('Xfifo')
endif
if !has("gui_macvim")
for cdevfile in systemlist('find /dev -type c -maxdepth 2 2>/dev/null')
let type = getftype(cdevfile)
" ignore empty result, can happen if the file disappeared
@@ -150,7 +149,6 @@ func Test_getftype()
call assert_equal('cdev', type)
endif
endfor
endif
for bdevfile in systemlist('find /dev -type b -maxdepth 2 2>/dev/null')
let type = getftype(bdevfile)
-6
View File
@@ -645,12 +645,6 @@ func Test_terminal_write_stdin()
endfunc
func Test_terminal_no_cmd()
if has('gui_macvim') && has('gui_running')
" MacVim: For some reason this test is failing in GUI unit tests. Need to
" investigate.
return
endif
let buf = term_start('NONE', {})
call assert_notequal(0, buf)
-6
View File
@@ -4,12 +4,6 @@ if !has('timers')
finish
endif
if has('gui_macvim')
" MacVim's GUI currently doesn't always pass these tests. Disable these
" tests for now when testing before a more proper fix is implemented.
finish
endif
source shared.vim
source screendump.vim