Do not pass TGS params when running without DMAPI

This commit is contained in:
Jordan Dominion
2025-04-27 13:34:05 -04:00
parent bb24df3cee
commit a353232e62
8 changed files with 101 additions and 76 deletions
+8 -7
View File
@@ -39,15 +39,16 @@
fdel("test_event_output.txt")
var/test_data = "nwfiuurhfu"
world.TgsTriggerEvent("test_event", list(test_data), TRUE)
if(!fexists("test_event_output.txt"))
FailTest("Expected test_event_output.txt to exist here", "test_fail_reason.txt")
if(world.TgsAvailable())
if(!fexists("test_event_output.txt"))
FailTest("Expected test_event_output.txt to exist here", "test_fail_reason.txt")
var/test_contents = copytext(file2text("test_event_output.txt"), 1, length(test_data) + 1)
if(test_contents != test_data)
FailTest("Expected test_event_output.txt to contain [test_data] here. Got [test_contents]", "test_fail_reason.txt")
var/test_contents = copytext(file2text("test_event_output.txt"), 1, length(test_data) + 1)
if(test_contents != test_data)
FailTest("Expected test_event_output.txt to contain [test_data] here. Got [test_contents]", "test_fail_reason.txt")
world.log << "file check 1"
fdel("test_event_output.txt")
world.log << "file check 1"
fdel("test_event_output.txt")
var/start_time = world.timeofday
world.TgsTriggerEvent("test_event", list("asdf"), FALSE)