diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-11-23 18:57:24 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-23 18:57:24 -0800 |
| commit | 2aa7b101142e4b66682ba40b43537d8f2192f0a3 (patch) | |
| tree | 88cf4323927b299c961553bc66fb08af3463c8a4 /src/nvim/testdir/shared.vim | |
| parent | 61d2a12743bcefbdd661b446b0b0fea7a1f77b17 (diff) | |
| parent | 4c532f54695e380113ec3e3db8b915e838a0bb16 (diff) | |
| download | rneovim-2aa7b101142e4b66682ba40b43537d8f2192f0a3.tar.gz rneovim-2aa7b101142e4b66682ba40b43537d8f2192f0a3.tar.bz2 rneovim-2aa7b101142e4b66682ba40b43537d8f2192f0a3.zip | |
Merge #11431 from janlazo/vim-8.1.1235
vim-patch:8.1.{471,723,1235,1490,1951,2183,2269,2329,2330}
Diffstat (limited to 'src/nvim/testdir/shared.vim')
| -rw-r--r-- | src/nvim/testdir/shared.vim | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/nvim/testdir/shared.vim b/src/nvim/testdir/shared.vim index a5d83d6a25..b0b59db686 100644 --- a/src/nvim/testdir/shared.vim +++ b/src/nvim/testdir/shared.vim @@ -69,7 +69,8 @@ endfunc " Read the port number from the Xportnr file. func GetPort() let l = [] - for i in range(200) + " with 200 it sometimes failed + for i in range(400) try let l = readfile("Xportnr") catch @@ -279,11 +280,15 @@ func GetVimCommand(...) return cmd endfunc -" Get the command to run Vim, with --clean. +" Get the command to run Vim, with --clean instead of "-u NONE". func GetVimCommandClean() let cmd = GetVimCommand() let cmd = substitute(cmd, '-u NONE', '--clean', '') let cmd = substitute(cmd, '--headless', '', '') + + " Optionally run Vim under valgrind + " let cmd = 'valgrind --tool=memcheck --leak-check=yes --num-callers=25 --log-file=valgrind ' . cmd + return cmd endfunc |