To: vim_dev@googlegroups.com Subject: Patch 8.2.1222 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1222 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. Files: src/testdir/shared.vim *** ../vim-8.2.1221/src/testdir/shared.vim 2020-07-06 21:03:02.589331536 +0200 --- src/testdir/shared.vim 2020-07-15 17:30:07.854619960 +0200 *************** *** 268,274 **** " 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 g:valgrind_cnt += 1 endif --- 268,274 ---- " 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 g:valgrind_cnt += 1 endif *** ../vim-8.2.1221/src/version.c 2020-07-15 18:27:03.168733637 +0200 --- src/version.c 2020-07-15 18:28:16.008525909 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 1222, /**/ -- One difference between a man and a machine is that a machine is quiet when well oiled. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///