DebuggerGdbmi: minor update to tests

This commit is contained in:
Martin 2024-02-20 18:01:36 +01:00
parent e183ea0b5f
commit 74c69d2d0a

View File

@ -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