mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 15:42:35 +00:00
* the boulder must be pushed * awk? * sadfasdf * sadf * sadfsda * asdf * sdfasafd * asdfsad * asdf * dsfafa * despair * sadfsda * sdfsadf * 1589 * sdaf * sadfasd * asdf * safsadf * fdsafsa * add create and destroy * fdsa * sdafasfsda * pods for away sites * oopsie * hgdfs * i am speed * sdafas * hopefully this works first trAHAHAHAH * asdf * dfsadasf * sfasdf * 6461 * dsfasfd * sfda * fsd * sdfas * fsdaf * sadf * safasf * sudo * sadfsad * dfsdf
19 lines
776 B
Plaintext
19 lines
776 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.init_state & SS_INITSTATE_DONE))
|
|
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.")
|