# HG changeset patch
# User sheepluva
# Date 1417627957 -3600
# Node ID b50e094d8b0063a50060cac350773a88d013fe87
# Parent  0f7dedda093b8b0d69a2141956c56a7477e86468
add warning to logs when tests terminates prematurely

diff -r 0f7dedda093b -r b50e094d8b00 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);