From 166b659be0ea5e05dcbba9667f68407cc8d1dd91 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Tue, 28 Apr 2020 14:18:57 -0400 Subject: [PATCH] Add more logging --- tests/DMAPI/BasicOperation/Test.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/DMAPI/BasicOperation/Test.dm b/tests/DMAPI/BasicOperation/Test.dm index d39bacedc3..24021780bc 100644 --- a/tests/DMAPI/BasicOperation/Test.dm +++ b/tests/DMAPI/BasicOperation/Test.dm @@ -1,21 +1,30 @@ /world/New() + log << "About to call TgsNew()" TgsNew(minimum_required_security_level = TGS_SECURITY_SAFE) + log << "About to call StartAsync()" StartAsync() /proc/StartAsync() set waitfor = FALSE + world.log << "First sleep" sleep(50) + world.log << "Priming..." world.TgsInitializationComplete() + world.log << "Second sleep" sleep(50) + world.log << "Validating API sleep" // Validate TGS_DMAPI_VERSION against DMAPI version used var/datum/tgs_version/active_version = world.TgsApiVersion() var/datum/tgs_version/dmapi_version = new /datum/tgs_version(TGS_DMAPI_VERSION) if(!active_version.Equals(dmapi_version)) text2file("DMAPI version [TGS_DMAPI_VERSION] does not match active API version [active_version.raw_parameter]", "test_fail_reason.txt") + world.log << "Terminating..." world.TgsEndProcess() + world.log << "You really shouldn't be able to read this" + /world/Topic(T, Addr, Master, Keys) TGS_TOPIC