add warning to logs when tests terminates prematurely
authorsheepluva
Wed, 03 Dec 2014 18:32:37 +0100
changeset 10621 b50e094d8b00
parent 10620 0f7dedda093b
child 10622 9551211455a3
add warning to logs when tests terminates prematurely
hedgewars/hwengine.pas
--- a/hedgewars/hwengine.pas	Wed Dec 03 18:22:57 2014 +0100
+++ b/hedgewars/hwengine.pas	Wed Dec 03 18:32:37 2014 +0100
@@ -588,11 +588,14 @@
         {$ENDIF}
 
     if cTestLua then
+        begin
+        WriteLnToConsole('WARNING: Lua test terminated before the test was properly finished with EndLuaTest()!');
         {$IFDEF PAS2C}
         exit(HaltTestUnexpected);
         {$ELSE}
         halt(HaltTestUnexpected);
         {$ENDIF}
+        end;
 
     {$IFDEF PAS2C}
     exit(HaltNoError);