diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-02-11 17:08:40 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-02-11 19:03:28 +0100 |
commit | 1be0107168a9120eddbce514fd57ba1e8d218e79 (patch) | |
tree | 6941fccbdac6df29fbd49688dde16ca5c3f558d0 | |
parent | bcd854186396e3dc62830914cb60bc8a90e5ee0a (diff) | |
download | rneovim-1be0107168a9120eddbce514fd57ba1e8d218e79.tar.gz rneovim-1be0107168a9120eddbce514fd57ba1e8d218e79.tar.bz2 rneovim-1be0107168a9120eddbce514fd57ba1e8d218e79.zip |
vim-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.
https://github.com/vim/vim/commit/15e737f768542fcc516296b5c158e14cc7ba7feb
-rw-r--r-- | src/nvim/testdir/runtest.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/runtest.vim b/src/nvim/testdir/runtest.vim index 7685455e60..c034ad2810 100644 --- a/src/nvim/testdir/runtest.vim +++ b/src/nvim/testdir/runtest.vim @@ -248,8 +248,17 @@ for s:test in sort(s:tests) if len(v:errors) > 0 && index(s:flaky, s:test) >= 0 call add(s:messages, 'Flaky test failed, running it again') + let first_run = v:errors + let v:errors = [] call RunTheTest(s:test) + if len(v:errors) > 0 + let second_run = v:errors + let v:errors = ['First run:'] + call extend(v:errors, first_run) + call add(v:errors, 'Second run:') + call extend(v:errors, second_run) + endif endif call AfterTheTest() |