comparison src/testdir/runtest.vim @ 11187:515db00c4676 v8.0.0480

patch 8.0.0480: the remote_peek() test fails on MS-Windows commit https://github.com/vim/vim/commit/15e737f768542fcc516296b5c158e14cc7ba7feb Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 18 21:22:47 2017 +0100 patch 8.0.0480: the remote_peek() test fails on MS-Windows Problem: The remote_peek() test fails on MS-Windows. Solution: Check for pending messages. Also report errors in the first run if a flaky test fails twice.
author Christian Brabandt <cb@256bit.org>
date Sat, 18 Mar 2017 21:30:04 +0100
parents eb050472e4b4
children 4db196820d3b
comparison
equal deleted inserted replaced
11186:b924ba6a4bbc 11187:515db00c4676
248 248
249 if len(v:errors) > 0 && index(s:flaky, s:test) >= 0 249 if len(v:errors) > 0 && index(s:flaky, s:test) >= 0
250 call add(s:messages, 'Found errors in ' . s:test . ':') 250 call add(s:messages, 'Found errors in ' . s:test . ':')
251 call extend(s:messages, v:errors) 251 call extend(s:messages, v:errors)
252 call add(s:messages, 'Flaky test failed, running it again') 252 call add(s:messages, 'Flaky test failed, running it again')
253 let first_run = v:errors
254
253 let v:errors = [] 255 let v:errors = []
254 call RunTheTest(s:test) 256 call RunTheTest(s:test)
257 if len(v:errors) > 0
258 let second_run = v:errors
259 let v:errors = ['First run:']
260 call extend(v:errors, first_run)
261 call add(v:errors, 'Second run:')
262 call extend(v:errors, second_run)
263 endif
255 endif 264 endif
256 265
257 call AfterTheTest() 266 call AfterTheTest()
258 endfor 267 endfor
259 268