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)
diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim
index 8589bf6..0dc142e 100644
--- a/src/testdir/runtest.vim
+++ b/src/testdir/runtest.vim
@@ -76,7 +76,7 @@
 
 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