Skip to content

Commit

Permalink
[ORC] Call ExecutorProcessControl::disconnect in unit tests that requ…
Browse files Browse the repository at this point in the history
…ire it.

Another follow-up to 2815ed5 and 19b4e3c. 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
  • Loading branch information
lhames committed Oct 12, 2021
1 parent f526ee5 commit adf55ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -134,6 +134,8 @@ TEST(EPCGenericJITLinkMemoryManagerTest, AllocFinalizeFree) {

auto Err2 = MemMgr->deallocate(std::move(*FA));
EXPECT_THAT_ERROR(std::move(Err2), Succeeded());

cantFail(SelfEPC->disconnect());
}

} // namespace
Expand Up @@ -93,6 +93,8 @@ TEST(EPCGenericMemoryAccessTest, MemWrites) {
{{pointerToJITTargetAddress(&Test_Buffer), TestMsg}});
EXPECT_THAT_ERROR(std::move(Err5), Succeeded());
EXPECT_EQ(StringRef(Test_Buffer, TestMsg.size()), TestMsg);

cantFail(SelfEPC->disconnect());
}

} // namespace

0 comments on commit adf55ac

Please sign in to comment.