Mercurial > vim
comparison src/testdir/runtest.vim @ 12682:47f253caa805 v8.0.1219
patch 8.0.1219: terminal test is flaky
commit https://github.com/vim/vim/commit/f204e05ae9f6bc5d922d14d457e16b590efbf3e5
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 26 17:14:01 2017 +0200
patch 8.0.1219: terminal test is flaky
Problem: Terminal test is flaky.
Solution: Add test function to list of flaky tests.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 26 Oct 2017 17:15:05 +0200 |
parents | 4767939d10cc |
children | a6a935b3270e |
comparison
equal
deleted
inserted
replaced
12681:ebdb4ea1386e | 12682:47f253caa805 |
---|---|
107 endtry | 107 endtry |
108 endif | 108 endif |
109 | 109 |
110 call add(s:messages, 'Executing ' . a:test) | 110 call add(s:messages, 'Executing ' . a:test) |
111 let s:done += 1 | 111 let s:done += 1 |
112 try | 112 |
113 if a:test =~ 'Test_nocatch_' | |
114 " Function handles errors itself. This avoids skipping commands after the | |
115 " error. | |
113 exe 'call ' . a:test | 116 exe 'call ' . a:test |
114 catch /^\cskipped/ | 117 else |
115 call add(s:messages, ' Skipped') | 118 try |
116 call add(s:skipped, 'SKIPPED ' . a:test . ': ' . substitute(v:exception, '^\S*\s\+', '', '')) | 119 exe 'call ' . a:test |
117 catch | 120 catch /^\cskipped/ |
118 call add(v:errors, 'Caught exception in ' . a:test . ': ' . v:exception . ' @ ' . v:throwpoint) | 121 call add(s:messages, ' Skipped') |
119 endtry | 122 call add(s:skipped, 'SKIPPED ' . a:test . ': ' . substitute(v:exception, '^\S*\s\+', '', '')) |
123 catch | |
124 call add(v:errors, 'Caught exception in ' . a:test . ': ' . v:exception . ' @ ' . v:throwpoint) | |
125 endtry | |
126 endif | |
120 | 127 |
121 if exists("*TearDown") | 128 if exists("*TearDown") |
122 try | 129 try |
123 call TearDown() | 130 call TearDown() |
124 catch | 131 catch |
231 \ 'Test_pipe_through_sort_all()', | 238 \ 'Test_pipe_through_sort_all()', |
232 \ 'Test_pipe_through_sort_some()', | 239 \ 'Test_pipe_through_sort_some()', |
233 \ 'Test_quoteplus()', | 240 \ 'Test_quoteplus()', |
234 \ 'Test_quotestar()', | 241 \ 'Test_quotestar()', |
235 \ 'Test_reltime()', | 242 \ 'Test_reltime()', |
243 \ 'Test_terminal_composing_unicode()', | |
236 \ 'Test_terminal_noblock()', | 244 \ 'Test_terminal_noblock()', |
237 \ 'Test_with_partial_callback()', | 245 \ 'Test_with_partial_callback()', |
238 \ ] | 246 \ ] |
239 | 247 |
240 " Locate Test_ functions and execute them. | 248 " Locate Test_ functions and execute them. |