mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-12 02:12:14 +00:00
* 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
19 lines
757 B
Plaintext
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.")
|