Set up PackedData when setting up tests
Some tests need functions of ProjectSettings that rely on this being available.
This commit is contained in:
parent
5f77f38573
commit
c165814d36
|
@ -390,6 +390,8 @@ Error Main::test_setup() {
|
|||
register_core_types();
|
||||
register_core_driver_types();
|
||||
|
||||
packed_data = memnew(PackedData);
|
||||
|
||||
globals = memnew(ProjectSettings);
|
||||
|
||||
GLOBAL_DEF("debug/settings/crash_handler/message",
|
||||
|
@ -459,6 +461,9 @@ void Main::test_cleanup() {
|
|||
if (globals) {
|
||||
memdelete(globals);
|
||||
}
|
||||
if (packed_data) {
|
||||
memdelete(packed_data);
|
||||
}
|
||||
if (engine) {
|
||||
memdelete(engine);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue