Initial work on also doing battle stuff in tests.

This commit is contained in:
2021-08-23 21:44:59 +02:00
parent 3488339d51
commit c821e6f53b
9 changed files with 123 additions and 32 deletions

View File

@@ -15,6 +15,7 @@ public:
ctx->Prepare(_function);
ctx->SetUserData(_env.get());
auto e = ctx->Execute();
_env->CollectGarbage();
if (e == asEXECUTION_EXCEPTION) {
_errorMessage = ctx->GetExceptionString();
_result = TestResult::Failed;