diff options
author | Matthieu Coudron <teto@users.noreply.github.com> | 2021-10-20 21:27:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-20 21:27:40 +0200 |
commit | d0f10a7addc17149d7e63ff20705762c357eb469 (patch) | |
tree | f81522f4eac37155b11d014554d196338a4f3925 /test/functional/helpers.lua | |
parent | 81717d2461a673000a0c44b586652575daf0ddc6 (diff) | |
parent | 12bccc7dd19e55068156ec5fb55bbf960ec4aad8 (diff) | |
download | rneovim-d0f10a7addc17149d7e63ff20705762c357eb469.tar.gz rneovim-d0f10a7addc17149d7e63ff20705762c357eb469.tar.bz2 rneovim-d0f10a7addc17149d7e63ff20705762c357eb469.zip |
Merge pull request #14794 from BK1603/gdbserver_fix
functionaltest: fix running tests under gdbserver
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r-- | test/functional/helpers.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua index a26e883370..f152a487af 100644 --- a/test/functional/helpers.lua +++ b/test/functional/helpers.lua @@ -96,10 +96,7 @@ function module.get_session() return session end -function module.set_session(s, keep) - if session and not keep then - session:close() - end +function module.set_session(s) session = s end @@ -366,7 +363,11 @@ local function remove_args(args, args_rm) return new_args end -function module.spawn(argv, merge, env) +function module.spawn(argv, merge, env, keep) + if session and not keep then + session:close() + end + local child_stream = ChildProcessStream.spawn( merge and module.merge_args(prepend_argv, argv) or argv, env) |