trident-job / delphi-code-coverage

Automatically exported from code.google.com/p/delphi-code-coverage
0 stars 0 forks source link

rc8 and rc7 have problems testing code which makes use of generics libraries, such as generics.collections #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a test project for a new function that makes use of TDictionary (part 
of System.Generics.Collections delphi library).
2. write a test for that function.
2. run the test coverage tool (RC7 or RC8) with the following parameters: 
-ife -m project1.map -e project1.exe -u coh.utils.myunit -sd 
c:/coh/source/utils -html 

What is the expected output? What do you see instead?
You should see a 100% code coverage result for the only function in the myunit 
unit.
Instead the code coverage tool will report an "Exception during generation of 
unit coverage for:System.Generics.Defaults.pas exception:I/O error 103" error, 
and the code coverage will be at 99% or a similar value. Also, the report will 
include the Generics.defaults.pas library with a 0% code coverage.

What version of the product are you using? On what operating system?
This problem is absent if you use RC6, it is present in RC7, RC8.  The 
operating system is Windows 7 pro 64bit. Delphi XE2.

Please provide any additional information below.
I believe that the error can be at Debugger.pas, in r111 where the line:
    if (AModuleList.IndexOf(UnitModuleName) > -1) then
was changed to 
    if (AModuleList.IndexOf(ModuleName) > -1) then
I haven't built the delphi-code-coverage project from source, so I cannot 
assert that this is truly the source of the problem.

Original issue reported on code.google.com by richard9...@gmail.com on 12 Sep 2012 at 1:45

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r163.

Original comment by e.kotlya...@gmail.com on 18 Sep 2012 at 7:02