# HG changeset patch # User Bram Moolenaar # Date 1594830604 -7200 # Node ID d265b908c802c524510f819fc3c5a972239e213b # Parent 7f74e77a603086dc9f04a534e01d1859435fc76c patch 8.2.1222: using valgrind in Vim command started by test doesn't work Commit: https://github.com/vim/vim/commit/657a826c07b4ea3f8846b6acb2c50b82c2d81e50 Author: Bram Moolenaar Date: Wed Jul 15 18:29:18 2020 +0200 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. diff --git a/src/testdir/shared.vim b/src/testdir/shared.vim --- a/src/testdir/shared.vim +++ b/src/testdir/shared.vim @@ -268,7 +268,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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1222, +/**/ 1221, /**/ 1220,