summaryrefslogtreecommitdiff
path: root/src/testdir/shared.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-15 18:29:18 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-15 18:29:18 +0200
commit657a826c07b4ea3f8846b6acb2c50b82c2d81e50 (patch)
tree333d01ed81293ae509ffb62478ae004bc5907fcb /src/testdir/shared.vim
parent02f9e6a60f9851046154ccf2ac170f25a0b3cc7d (diff)
downloadvim-git-657a826c07b4ea3f8846b6acb2c50b82c2d81e50.tar.gz
patch 8.2.1222: using valgrind in Vim command started by test doesn't workv8.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.
Diffstat (limited to 'src/testdir/shared.vim')
-rw-r--r--src/testdir/shared.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testdir/shared.vim b/src/testdir/shared.vim
index bbd28be1c..c7dd41f20 100644
--- 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