mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-30 12:22:56 +02:00
Debugger, testsuite: fix crash if logging is disabled
git-svn-id: trunk@61446 -
This commit is contained in:
parent
a326525422
commit
745d2b94d1
@ -545,10 +545,11 @@ end;
|
||||
|
||||
procedure TDBGTestCase.LogError(const s: string; CopyToTestLogger: Boolean);
|
||||
begin
|
||||
if GetLogActive or (TestControlGetWriteLog = wlOnError) then
|
||||
if GetLogActive or (TestControlGetWriteLog = wlOnError) then begin
|
||||
CreateLog;
|
||||
FLogFile.WriteLnToFile(EscapeText(s));
|
||||
//writeln(FLogFile, EscapeText(s));
|
||||
FLogFile.WriteLnToFile(EscapeText(s));
|
||||
//writeln(FLogFile, EscapeText(s));
|
||||
end;
|
||||
if CopyToTestLogger then
|
||||
TestLogger.DebugLn(s);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user