mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 02:20:19 +02:00
DebuggerGdbmi: minor update to tests
This commit is contained in:
parent
e183ea0b5f
commit
74c69d2d0a
@ -402,7 +402,7 @@ var
|
||||
fld: TDBGField;
|
||||
MemberTests: TFullTypeMemberExpectationResultArray;
|
||||
|
||||
function CmpNames(const TestName, Exp, Got: String; Match: Boolean): Boolean;
|
||||
function CmpNames(const TestName, Exp: String; Got: String; Match: Boolean): Boolean;
|
||||
begin
|
||||
if Match then begin
|
||||
if Frx = nil then Frx := TRegExpr.Create;
|
||||
@ -410,7 +410,10 @@ var
|
||||
Frx.Expression := Exp;
|
||||
TestTrue(TestName + ' matches '+Exp+' but was '+Got, Frx.Exec(Got), DataRes.MinGdb, DataRes.MinFpc, IgnoreText);
|
||||
end
|
||||
else TestEquals(TestName + ' equals ', LowerCase(Exp), LowerCase(Got), DataRes.MinGdb, DataRes.MinFpc, IgnoreText);
|
||||
else begin
|
||||
if LowerCase(Got) = 'ansichar' then Got := 'char'; // 3.3.1 returns ansichar
|
||||
TestEquals(TestName + ' equals ', LowerCase(Exp), LowerCase(Got), DataRes.MinGdb, DataRes.MinFpc, IgnoreText);
|
||||
end;
|
||||
end;
|
||||
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user