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.
657a826c07
This commit is contained in:
Jan Edmund Lazo 2020-07-15 19:29:46 -04:00
parent bb1f06fa82
commit 140a372017
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -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