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);