File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -910,8 +910,19 @@ fnamemodify = vim.Function('fnamemodify')
910910cb .append (str (fnamemodify (' .' , ' :p:h:t' )))
911911cb .append (vim .eval (' @%' ))
912912os.chdir (' ..' )
913- cb .append (str (fnamemodify (' .' , ' :p:h:t' )))
914- cb .append (vim .eval (' @%' ).replace (os.path .sep, ' /' ))
913+ path = fnamemodify (' .' , ' :p:h:t' )
914+ if path != b ' src' :
915+ # Running tests from a shadow directory , so move up another level
916+ # This will result in @% looking like shadow/testdir/ test87.in , hence the
917+ # slicing to remove the leading path and path separator
918+ os.chdir (' ..' )
919+ cb .append (str (fnamemodify (' .' , ' :p:h:t' )))
920+ cb .append (vim .eval (' @%' )[len (path )+ 1 :].replace (os.path .sep, ' /' ))
921+ os.chdir (path )
922+ else :
923+ cb .append (str (fnamemodify (' .' , ' :p:h:t' )))
924+ cb .append (vim .eval (' @%' ).replace (os.path .sep, ' /' ))
925+ del path
915926os.chdir (' testdir' )
916927cb .append (str (fnamemodify (' .' , ' :p:h:t' )))
917928cb .append (vim .eval (' @%' ))
Original file line number Diff line number Diff line change @@ -741,6 +741,8 @@ static char *(features[]) =
741741
742742static int included_patches [] =
743743{ /* Add new patch number below this line */
744+ /**/
745+ 964 ,
744746/**/
745747 963 ,
746748/**/
You can’t perform that action at this time.
0 commit comments