[ORC] Call ExecutorProcessControl::disconnect in unit tests that require it.
authorLang Hames <lhames@gmail.com>
Tue, 12 Oct 2021 21:55:49 +0000 (14:55 -0700)
committerLang Hames <lhames@gmail.com>
Tue, 12 Oct 2021 21:59:39 +0000 (14:59 -0700)
commitadf55ac6657693f7bfbe3087b599b4031a765a44
tree9da7bb1551983de4d0b53675cc325d5fb7201375
parentf526ee5b8517b60620cd03bb3e5945ed69d6bfaa
[ORC] Call ExecutorProcessControl::disconnect in unit tests that require it.

Another follow-up to 2815ed57e3c and 19b4e3cfc6a. For unit tests that don't use
an ExecutionSession we need to call ExecutorProcessControl::disconnect directly
to wait for the dispatcher to shut down.

https://llvm.org/PR52153
llvm/unittests/ExecutionEngine/Orc/EPCGenericJITLinkMemoryManagerTest.cpp
llvm/unittests/ExecutionEngine/Orc/EPCGenericMemoryAccessTest.cpp