fpcunit: fixed compile under fpc 3.0.0

git-svn-id: trunk@57982 -
This commit is contained in:
mattias 2018-05-21 07:15:14 +00:00
parent 1f81cd02d5
commit 7696ca4753

View File

@ -679,7 +679,7 @@ var
i: integer;
begin
rootNode.StateIndex := Ord(tsChecked);
for i := 0 to ASuite.ChildTestCount - 1 do
for i := 0 to ASuite.{$IF FPC_FULLVERSION<30300}CountTestCases{$ELSE}ChildTestCount{$ENDIF} - 1 do
begin
node := TestTree.Items.AddChildObject(rootNode, ASuite.Test[i].TestName, ASuite.Test[i]);
if ASuite.Test[i] is TTestSuite then