FpcUnit: Prevent a SIGSEGV in GUITestRunner app. Issue #28166.

git-svn-id: trunk@49149 -
This commit is contained in:
juha 2015-05-23 15:24:36 +00:00
parent 1568077381
commit f1af3d13cc

View File

@ -252,6 +252,7 @@ function TGUITestRunner.MakeTestPath(Node: TTreeNode): string;
begin
Result := Node.Text;
Node := Node.Parent;
If Node = Nil then Exit;
// We can now skip the unnecessary "All Tests" text
while Node.Parent <> nil do
begin