You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #76878 from RedworkDE/tests-fix-errors
Fix various errors when running the unit tests
This commit is contained in:
@@ -613,8 +613,6 @@ void Main::test_cleanup() {
|
||||
TextServerManager::get_singleton()->get_interface(i)->cleanup();
|
||||
}
|
||||
|
||||
EngineDebugger::deinitialize();
|
||||
|
||||
ResourceLoader::remove_custom_loaders();
|
||||
ResourceSaver::remove_custom_savers();
|
||||
|
||||
@@ -626,6 +624,7 @@ void Main::test_cleanup() {
|
||||
|
||||
GDExtensionManager::get_singleton()->deinitialize_extensions(GDExtension::INITIALIZATION_LEVEL_SCENE);
|
||||
uninitialize_modules(MODULE_INITIALIZATION_LEVEL_SCENE);
|
||||
|
||||
unregister_platform_apis();
|
||||
unregister_driver_types();
|
||||
unregister_scene_types();
|
||||
@@ -636,8 +635,12 @@ void Main::test_cleanup() {
|
||||
uninitialize_modules(MODULE_INITIALIZATION_LEVEL_SERVERS);
|
||||
unregister_server_types();
|
||||
|
||||
EngineDebugger::deinitialize();
|
||||
OS::get_singleton()->finalize();
|
||||
|
||||
if (packed_data) {
|
||||
memdelete(packed_data);
|
||||
}
|
||||
if (translation_server) {
|
||||
memdelete(translation_server);
|
||||
}
|
||||
@@ -653,16 +656,13 @@ void Main::test_cleanup() {
|
||||
if (globals) {
|
||||
memdelete(globals);
|
||||
}
|
||||
if (packed_data) {
|
||||
memdelete(packed_data);
|
||||
}
|
||||
if (engine) {
|
||||
memdelete(engine);
|
||||
}
|
||||
|
||||
unregister_core_driver_types();
|
||||
uninitialize_modules(MODULE_INITIALIZATION_LEVEL_CORE);
|
||||
unregister_core_extensions();
|
||||
uninitialize_modules(MODULE_INITIALIZATION_LEVEL_CORE);
|
||||
unregister_core_types();
|
||||
|
||||
OS::get_singleton()->finalize_core();
|
||||
|
||||
Reference in New Issue
Block a user