aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-07-15 19:29:46 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-07-19 11:40:35 -0400
commit140a372017c7649e156742622c9ccc1cd8b794c1 (patch)
tree6b9d7ba03ed7db4b2a009d97570fbaaec667f621
parentbb1f06fa82d9dd3c30b983068e51923cf50dc499 (diff)
downloadrneovim-140a372017c7649e156742622c9ccc1cd8b794c1.tar.gz
rneovim-140a372017c7649e156742622c9ccc1cd8b794c1.tar.bz2
rneovim-140a372017c7649e156742622c9ccc1cd8b794c1.zip
vim-patch:8.2.1222: using valgrind in Vim command started by test doesn't work
Problem: When using valgrind a Vim command started by a test uses the same log file name which gets overwritten. Solution: Fix regexp to rename the log file. https://github.com/vim/vim/commit/657a826c07b4ea3f8846b6acb2c50b82c2d81e50
-rw-r--r--src/nvim/testdir/shared.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/testdir/shared.vim b/src/nvim/testdir/shared.vim
index b041fdedb1..41ff9b2bd6 100644
--- a/src/nvim/testdir/shared.vim
+++ b/src/nvim/testdir/shared.vim
@@ -275,7 +275,7 @@ func GetVimCommand(...)
" If using valgrind, make sure every run uses a different log file.
if cmd =~ 'valgrind.*--log-file='
- let cmd = substitute(cmd, '--log-file=\(^\s*\)', '--log-file=\1.' . g:valgrind_cnt, '')
+ let cmd = substitute(cmd, '--log-file=\(\S*\)', '--log-file=\1.' . g:valgrind_cnt, '')
let g:valgrind_cnt += 1
endif