Fix debugger test compilation.

git-svn-id: trunk@64518 -
This commit is contained in:
juha 2021-02-10 15:35:10 +00:00
parent db9a7ce064
commit 657341c4df
3 changed files with 4 additions and 7 deletions

View File

@ -8,9 +8,8 @@ uses
TestDisAss, TestException, Testwatches, TestBreakPoint,
TestEnvironment, TestArgV, LazLogger;
{$R *.res}
begin
Application.Title:='';
Application.Initialize;
Application.CreateForm(TGuiTestRunner, TestRunner);
Application.Run;

View File

@ -10,7 +10,7 @@ uses
LazFileUtils, LazUTF8,
TestOutputLogger;
{$R sources.rc}
{.$R sources.rc}
type

View File

@ -372,14 +372,13 @@ type
function TStringArrayHelper.IndexOfFieldName(AName: String; ALength: Integer;
Sep: char): Integer;
var
i: Integer;
p: SizeInt;
begin
ALength := Min(ALength, Length(Self));
Result := 0;
while Result < ALength do begin
p := pos(Sep, Self[Result]);
if (p >= 0) and (CompareText(trim(Copy(Self[Result], 1, p-1)), AName) = 0 then
if (p >= 0) and (CompareText(trim(Copy(Self[Result], 1, p-1)), AName) = 0) then
exit;
inc(Result);
end;
@ -387,8 +386,7 @@ begin
Result := -1;
end;
function TStringArrayHelper.ValueOfFieldName(AnIndex: Integer; Sep: char
): String;
function TStringArrayHelper.ValueOfFieldName(AnIndex: Integer; Sep: char): String;
begin
Result := trim(copy(Self[AnIndex], pos(Sep, Self[AnIndex])+1, MaxInt));
end;