From d4d351c801c3eb8e90cc8727976ae20ca4e4d866 Mon Sep 17 00:00:00 2001 From: mattias Date: Fri, 21 Apr 2017 18:23:30 +0000 Subject: [PATCH] codetools: tests: clean up git-svn-id: trunk@54662 - --- .gitattributes | 1 - .../codetools/tests/runtestscodetools.lpi | 7 +--- .../codetools/tests/runtestscodetools.lpr | 3 +- components/codetools/tests/testcfgscript.pas | 2 +- .../codetools/tests/testcompleteblock.pas | 2 +- components/codetools/tests/testcth2pas.pas | 2 +- .../codetools/tests/testctrangescan.pas | 2 +- .../codetools/tests/testmethodjumptool.pas | 2 +- .../codetools/tests/testpascalparser.pas | 2 +- .../codetools/tests/teststdcodetools.pas | 2 +- .../codetools/tests/testvarcompletion.pas | 39 ------------------- 11 files changed, 9 insertions(+), 55 deletions(-) delete mode 100644 components/codetools/tests/testvarcompletion.pas diff --git a/.gitattributes b/.gitattributes index fda6c95478..7a4b8636d3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1012,7 +1012,6 @@ components/codetools/tests/testmethodjumptool.pas svneol=native#text/plain components/codetools/tests/testpascalparser.pas svneol=native#text/plain components/codetools/tests/testrefactoring.pas svneol=native#text/plain components/codetools/tests/teststdcodetools.pas svneol=native#text/plain -components/codetools/tests/testvarcompletion.pas svneol=native#text/plain components/codetools/unitdictionary.pas svneol=native#text/plain components/compilers/c/examples/test.c svneol=native#text/plain components/compilers/c/languages/lazcstrconsts.de.po svneol=native#text/plain diff --git a/components/codetools/tests/runtestscodetools.lpi b/components/codetools/tests/runtestscodetools.lpi index ad1dbdfbe4..0fdf0f4c36 100644 --- a/components/codetools/tests/runtestscodetools.lpi +++ b/components/codetools/tests/runtestscodetools.lpi @@ -37,7 +37,7 @@ - + @@ -102,11 +102,6 @@ - - - - - diff --git a/components/codetools/tests/runtestscodetools.lpr b/components/codetools/tests/runtestscodetools.lpr index 5470091896..baba661a12 100644 --- a/components/codetools/tests/runtestscodetools.lpr +++ b/components/codetools/tests/runtestscodetools.lpr @@ -42,8 +42,7 @@ uses {$ENDIF} fdt_classof, fdt_with, rt_explodewith, fdt_generics, TestBasicCodetools, TestCTRangeScan, TestPascalParser, TestMethodJumpTool, - TestStdCodetools, TestFindDeclaration, TestCompleteBlock, TestRefactoring, - TestVarCompletion; + TestStdCodetools, TestFindDeclaration, TestCompleteBlock, TestRefactoring; const ConfigFilename = 'codetools.config'; diff --git a/components/codetools/tests/testcfgscript.pas b/components/codetools/tests/testcfgscript.pas index 8223193b0b..c609a9b190 100644 --- a/components/codetools/tests/testcfgscript.pas +++ b/components/codetools/tests/testcfgscript.pas @@ -13,7 +13,7 @@ unit TestCfgScript; interface uses - Classes, SysUtils, fpcunit, testregistry, testglobals, FileProcs, + Classes, SysUtils, fpcunit, testregistry, FileProcs, CodeToolsCfgScript; type diff --git a/components/codetools/tests/testcompleteblock.pas b/components/codetools/tests/testcompleteblock.pas index 304d642aec..13e1116fb3 100644 --- a/components/codetools/tests/testcompleteblock.pas +++ b/components/codetools/tests/testcompleteblock.pas @@ -18,7 +18,7 @@ unit TestCompleteBlock; interface uses - Classes, SysUtils, fpcunit, testregistry, testglobals, FileProcs, + Classes, SysUtils, fpcunit, testregistry, FileProcs, CodeToolManager, CodeCache, CustomCodeTool; type diff --git a/components/codetools/tests/testcth2pas.pas b/components/codetools/tests/testcth2pas.pas index 0542afc4d8..f69e9d944a 100644 --- a/components/codetools/tests/testcth2pas.pas +++ b/components/codetools/tests/testcth2pas.pas @@ -18,7 +18,7 @@ unit TestCTH2Pas; interface uses - Classes, SysUtils, fpcunit, testregistry, testglobals, FileProcs, + Classes, SysUtils, fpcunit, testregistry, FileProcs, CodeToolManager, BasicCodeTools, CodeCache, CCodeParserTool, H2PasTool; type diff --git a/components/codetools/tests/testctrangescan.pas b/components/codetools/tests/testctrangescan.pas index d878a3966b..aa73f501fb 100644 --- a/components/codetools/tests/testctrangescan.pas +++ b/components/codetools/tests/testctrangescan.pas @@ -21,7 +21,7 @@ unit TestCTRangeScan; interface uses - Classes, SysUtils, fpcunit, testregistry, testglobals, FileProcs, + Classes, SysUtils, fpcunit, testregistry, FileProcs, CodeToolManager, CodeCache, CustomCodeTool, LinkScanner, CodeTree, EventCodeTool, PascalParserTool; diff --git a/components/codetools/tests/testmethodjumptool.pas b/components/codetools/tests/testmethodjumptool.pas index 8195e3cb5d..823f349f89 100644 --- a/components/codetools/tests/testmethodjumptool.pas +++ b/components/codetools/tests/testmethodjumptool.pas @@ -10,7 +10,7 @@ unit TestMethodJumpTool; interface uses - Classes, SysUtils, LCLProc, testglobals, fpcunit, testregistry, + Classes, SysUtils, LCLProc, fpcunit, testregistry, CodeToolManager, StdCodeTools, CodeCache, LinkScanner; type diff --git a/components/codetools/tests/testpascalparser.pas b/components/codetools/tests/testpascalparser.pas index 039ce1a6e6..8ebc7d3a58 100644 --- a/components/codetools/tests/testpascalparser.pas +++ b/components/codetools/tests/testpascalparser.pas @@ -141,7 +141,7 @@ begin ' class operator Initialize(var t: TMyRecord);', ' class operator Finalize(var t: TMyRecord);', ' class operator Copy(var t: TMyRecord);', - ' class operator Clone(constref t1: TMyRecord ; var t2: TMyRecord);', + ' class operator AddRef(constref t1: TMyRecord ; var t2: TMyRecord);', ' end;', '', 'class operator TMyRecord.Implicit(t: TMyRecord): TMyRecord;', diff --git a/components/codetools/tests/teststdcodetools.pas b/components/codetools/tests/teststdcodetools.pas index decb2d1f3c..7a21612b54 100644 --- a/components/codetools/tests/teststdcodetools.pas +++ b/components/codetools/tests/teststdcodetools.pas @@ -11,7 +11,7 @@ unit TestStdCodetools; interface uses - Classes, SysUtils, LCLProc, testglobals, fpcunit, testregistry, + Classes, SysUtils, LCLProc, fpcunit, testregistry, CodeToolManager, StdCodeTools, CodeCache, LinkScanner; type diff --git a/components/codetools/tests/testvarcompletion.pas b/components/codetools/tests/testvarcompletion.pas deleted file mode 100644 index 557fc2b3d7..0000000000 --- a/components/codetools/tests/testvarcompletion.pas +++ /dev/null @@ -1,39 +0,0 @@ -{ - Test with: - ./testcodetools --format=plain --suite=TTestVarCompletion - ./testcodetools --format=plain --suite=TestVarComplete_ForInSet -} -unit TestVarCompletion; - -{$mode objfpc}{$H+} - -interface - -uses - Classes, SysUtils, CodeToolManager, CodeCache, CodeTree, - BasicCodeTools, LazLogger, LazFileUtils, fpcunit, testregistry, - TestFinddeclaration; - -type - - { TTestVarCompletion } - - TTestVarCompletion = class(TTestCase) - private - published - procedure TestVarComplete_ForInSet; - end; - -implementation - -{ TTestVarCompletion } - -procedure TTestVarCompletion.TestVarComplete_ForInSet; -begin - -end; - -initialization - RegisterTests([TTestVarCompletion]); -end. -