Makes sure the TestHarnessRunner also hits the shutdown path

This commit is contained in:
Ryan Houdek committed 2021-06-10 12:47:05 -07:00
1 parent a1f4ca873c
commit 29083a0b41
1 file changed
+11
+11
View File
@@ -142,7 +142,18 @@ int main(int argc, char **argv, char **const envp) {
LogMan::Msg::I("Faulted? %s", DidFault ? "Yes" : "No");
LogMan::Msg::I("Passed? %s", Passed ? "Yes" : "No");
SyscallHandler.reset();
SignalDelegation.reset();
FEXCore::Context::DestroyContext(CTX);
FEXCore::Context::ShutdownStaticTables();
FEXCore::Config::Shutdown();
LogMan::Throw::UnInstallHandlers();
LogMan::Msg::UnInstallHandlers();
FEXCore::Allocator::ClearHooks();
return Passed ? 0 : -1;
}