Files
Aurora.3/code/unit_tests/subsystem_init.dm
Fluffy e867030c2e Update MC (#18112)
* sdf

* fsda

* fuck

* fuck2

* toolz

* sdaf

* sdfa

* saf

* sdfa

* sdfa

* sdf

* sdfa

* temp rename

* temp rename

* temp rename

* sdaf

* the pain is immensurable in the land of byond

* the curse of rah

* safd

* sadf

* sadf

* gf

* asf

* fssdfa

* sfd

* sadf

* sfda

* brah

* brah

* it's easier for you to fix this

* ffs

* brah

* brah
2024-01-06 17:03:57 +01:00

19 lines
757 B
Plaintext

/// Tests that all subsystems that need to properly initialize.
/datum/unit_test/subsystem_init
name = "Controller Subsystem Init"
groups = list("generic")
/datum/unit_test/subsystem_init/start_test()
for(var/datum/controller/subsystem/subsystem as anything in Master.subsystems)
if(subsystem.flags & SS_NO_INIT)
continue
if(!(subsystem.initialized))
var/message = "[subsystem] ([subsystem.type]) is a subsystem meant to initialize but doesn't get set as initialized."
if (subsystem.flags & SS_OK_TO_FAIL_INIT)
TEST_NOTICE("[src] - [message]\nThis subsystem is marked as SS_OK_TO_FAIL_INIT. This is still a bug, but it is non-blocking.")
else
return TEST_FAIL(message)
return TEST_PASS("All subsystems initialize correctly.")