diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-23 15:42:17 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-11-23 15:44:41 -0500 |
commit | 4c532f54695e380113ec3e3db8b915e838a0bb16 (patch) | |
tree | de46c5bcefafc2adad6c88ff22f353c969407441 | |
parent | 7639ccdd0d5033b8e21776df52612842eaba9210 (diff) | |
download | rneovim-4c532f54695e380113ec3e3db8b915e838a0bb16.tar.gz rneovim-4c532f54695e380113ec3e3db8b915e838a0bb16.tar.bz2 rneovim-4c532f54695e380113ec3e3db8b915e838a0bb16.zip |
vim-patch:8.1.0471: some tests are flaky or fail on some systems
Problem: Some tests are flaky or fail on some systems.
Solution: Increase waiting time for port number. Use "cmd /c" to execute
"echo" on win32. (Ken Takata, closes vim/vim#3534)
https://github.com/vim/vim/commit/453ce7c16b1001f23f2281b259176c6a00d82999
-rw-r--r-- | src/nvim/testdir/shared.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nvim/testdir/shared.vim b/src/nvim/testdir/shared.vim index 74fc516d62..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 @@ -284,6 +285,10 @@ 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 |