Quit test drivers through ApplicationExit and free test resources

Adds tests for freeing the temporary ext_resource sub-scene instance; the
animated foreground tests dispose their frame textures.
This commit is contained in:
cthangover committed 2026-10-29 13:21:41 +01:00
1 parent 650f87c6ed
commit 2c9e6805a9
5 files changed
+63 -6

No files matched your search

@@ -193,7 +193,7 @@ namespace Mods.TestRunner
if (reason != null)
GameLogger.Log("TEST", $"DialogAutoDriverNode: {reason}");
GameLogger.Log("TEST", $"[TEST_RESULT] name={ResultName} passed={passed} failed={failed}");
GetTree().Quit(failed == 0 ? 0 : 1);
Cthangover.Core.Bootstrap.ApplicationExit.Quit(GetTree(), failed == 0 ? 0 : 1);
}
}
}
+1 -1
View File
@@ -409,7 +409,7 @@ namespace Cthangover.Mods.Dialog.DocShots
{
index = -1;
GameLogger.Log("TEST", $"[TEST_RESULT] name=doc_shots passed={passed} failed={failures.Count}");
GetTree().Quit(failures.Count == 0 ? 0 : 1);
Cthangover.Core.Bootstrap.ApplicationExit.Quit(GetTree(), failures.Count == 0 ? 0 : 1);
}
}
}
+1 -1
View File
@@ -123,7 +123,7 @@ namespace Mods.DialogBase.Tests
{
done = true;
GameLogger.Log("TEST", $"[TEST_RESULT] name={ResultName} passed={passed} failed={failed}");
GetTree().Quit(failed == 0 ? 0 : 1);
Cthangover.Core.Bootstrap.ApplicationExit.Quit(GetTree(), failed == 0 ? 0 : 1);
}
}
}