mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-06 07:40:36 +01:00
Fix debugger test compilation.
git-svn-id: trunk@64518 -
This commit is contained in:
parent
db9a7ce064
commit
657341c4df
@ -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;
|
||||
|
||||
@ -10,7 +10,7 @@ uses
|
||||
LazFileUtils, LazUTF8,
|
||||
TestOutputLogger;
|
||||
|
||||
{$R sources.rc}
|
||||
{.$R sources.rc}
|
||||
|
||||
type
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user