diff src/testdir/runtest.vim @ 7295:6922fcadafe6 v7.4.953

commit https://github.com/vim/vim/commit/de0ad40cb3c1bc691a754698ed16a5b6cdb4086b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 3 17:21:28 2015 +0100 patch 7.4.953 Problem: When a test script navigates to another buffer the .res file is created with the wrong name. Solution: Use the "testname" for the .res file. (Damien)
author Christian Brabandt <cb@256bit.org>
date Thu, 03 Dec 2015 17:30:04 +0100
parents 6600871bb38c
children ddab7ae8796d
line wrap: on
line diff
--- a/src/testdir/runtest.vim
+++ b/src/testdir/runtest.vim
@@ -76,7 +76,7 @@ endfor
 
 if fail == 0
   " Success, create the .res file so that make knows it's done.
-  split %:r.res
+  exe 'split ' . fnamemodify(testname, ':r') . '.res'
   write
 endif