Quit test drivers through ApplicationExit

Drivers finish through ApplicationExit.Quit so engine mods complete their
asynchronous cleanup before the engine shuts down; failure codes are kept.
This commit is contained in:
cthangover committed 2026-10-29 13:21:34 +01:00
1 parent 09291155bf
commit b42b35d79e
1 file changed
+1 -1
@@ -266,7 +266,7 @@ namespace Cthangover.Mods.CthangoverGame.Tests
{ {
step = -1; step = -1;
GameLogger.Log("TEST", $"[TEST_RESULT] name=site_shots passed={passed} failed={failures.Count}"); GameLogger.Log("TEST", $"[TEST_RESULT] name=site_shots passed={passed} failed={failures.Count}");
GetTree().Quit(failures.Count == 0 ? 0 : 1); Cthangover.Core.Bootstrap.ApplicationExit.Quit(GetTree(), failures.Count == 0 ? 0 : 1);
} }
} }
} }