Support "multi-session" mode properly

Document remote debugging and add a test
This commit is contained in:
Ben Jackson 2020-05-15 15:18:06 +01:00 • committed by Ben Jackson
commit c6d6c7f876
12 changed files with 417 additions and 36 deletions

View file

@ -90,7 +90,7 @@ function! s:RunTestUnderCursor()
let l:cwd = getcwd()
execute 'lcd ' . s:root_dir
try
execute s:make_cmd . ' ' . l:test_arg
execute s:make_cmd . ' ' . get( b:, 'test_args', '' ) . ' ' . l:test_arg
finally
execute 'lcd ' . l:cwd
endtry
@ -101,7 +101,7 @@ function! s:RunTest()
let l:cwd = getcwd()
execute 'lcd ' . s:root_dir
try
execute s:make_cmd . ' %:p:t'
execute s:make_cmd . ' ' . get( b:, 'test_args', '' ) . ' %:p:t'
finally
execute 'lcd ' . l:cwd
endtry
@ -112,7 +112,7 @@ function! s:RunAllTests()
let l:cwd = getcwd()
execute 'lcd ' . s:root_dir
try
execute s:make_cmd
execute s:make_cmd . ' ' . get( b:, 'test_args', '' )
finally
execute 'lcd ' . l:cwd
endtry