Mercurial > vim
comparison src/testdir/shared.vim @ 20309:cae01dabd78e v8.2.0710
patch 8.2.0710: Netbeans test sometimes fails
Commit: https://github.com/vim/vim/commit/4a070cc82e00618db279526797564cb2b4e9b060
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 7 18:16:35 2020 +0200
patch 8.2.0710: Netbeans test sometimes fails
Problem: Netbeans test sometimes fails.
Solution: Mark any test using an external command as flaky.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 07 May 2020 18:30:03 +0200 |
parents | ec0ace1ddc20 |
children | 10eb6c38938c |
comparison
equal
deleted
inserted
replaced
20308:49fa1e49d5f5 | 20309:cae01dabd78e |
---|---|
34 return s:python | 34 return s:python |
35 endfunc | 35 endfunc |
36 | 36 |
37 " Run "cmd". Returns the job if using a job. | 37 " Run "cmd". Returns the job if using a job. |
38 func RunCommand(cmd) | 38 func RunCommand(cmd) |
39 " Running an external command can occasionally be slow or fail. | |
40 let g:test_is_flaky = 1 | |
41 | |
39 let job = 0 | 42 let job = 0 |
40 if has('job') | 43 if has('job') |
41 let job = job_start(a:cmd, {"stoponexit": "hup"}) | 44 let job = job_start(a:cmd, {"stoponexit": "hup"}) |
42 call job_setoptions(job, {"stoponexit": "kill"}) | 45 call job_setoptions(job, {"stoponexit": "kill"}) |
43 elseif has('win32') | 46 elseif has('win32') |