Browse Source

* patch from Graeme Geldenhuys so it compiles again

git-svn-id: trunk@11368 -
michael 17 years ago
parent
commit
0eb08af40e
1 changed files with 6 additions and 6 deletions
  1. 6 6
      packages/fcl-fpcunit/src/exampletests/fpcunittests.pp

+ 6 - 6
packages/fcl-fpcunit/src/exampletests/fpcunittests.pp

@@ -798,11 +798,11 @@ end;
 
 
 procedure TTestDecoratorTest.TestRun;
 procedure TTestDecoratorTest.TestRun;
 var
 var
-  suite: TTestSuite;
+  lsuite: TTestSuite;
   decorator: TTestDecorator;
   decorator: TTestDecorator;
 begin
 begin
-  suite := TTestSuite.Create(TEncapsulatedTestCase);
-  decorator := TTestDecorator.Create(suite);
+  lsuite := TTestSuite.Create(TEncapsulatedTestCase);
+  decorator := TTestDecorator.Create(lsuite);
   decorator.Run(res);
   decorator.Run(res);
   AssertEquals('wrong number of executed tests', 2, res.RunTests);
   AssertEquals('wrong number of executed tests', 2, res.RunTests);
   AssertEquals('wrong number of failures', 1, res.Failures.Count);
   AssertEquals('wrong number of failures', 1, res.Failures.Count);
@@ -811,12 +811,12 @@ end;
 
 
 procedure TTestDecoratorTest.TestOneTimeSetup;
 procedure TTestDecoratorTest.TestOneTimeSetup;
 var
 var
-  suite: TTestSuite;
+  lsuite: TTestSuite;
   setupDecorator: TTestSetup;
   setupDecorator: TTestSetup;
 begin
 begin
   CountSetup := 0;
   CountSetup := 0;
-  suite := TTestSuite.Create(TEncapsulatedTestCase);
-  setupDecorator := TMyTestSetup.Create(suite);
+  lsuite := TTestSuite.Create(TEncapsulatedTestCase);
+  setupDecorator := TMyTestSetup.Create(lsuite);
   setupDecorator.Run(res);
   setupDecorator.Run(res);
   AssertEquals('wrong number of executed tests', 2, res.RunTests);
   AssertEquals('wrong number of executed tests', 2, res.RunTests);
   AssertEquals('wrong number of failures', 1, res.Failures.Count);
   AssertEquals('wrong number of failures', 1, res.Failures.Count);