Closed Bug 592719 Opened 14 years ago Closed 6 years ago

Code-coverage - AS3 Classes: Error

Categories

(Tamarin Graveyard :: Tools, defect, P4)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX
Q2 12 - Cyril

People

(Reporter: cpeyer, Unassigned)

References

Details

(Whiteboard: code-coverage, loose-end)

Attachments

(1 file)

as of redux r5139:

                        covered      total        covered    total      
class                 functions  functions   pct     cond     cond   pct
Error                         9         16  56.2        3        6  50.0

coverage of:

avmplus::ErrorClass::
avmplus::ErrorObject::
Flags: flashplayer-qrb?
Whiteboard: code-coverage
Assignee: nobody → brbaker
Status: NEW → ASSIGNED
Flags: flashplayer-qrb? → flashplayer-qrb+
Priority: -- → P3
Target Milestone: --- → flash10.2.x-Spicy
Coverage data generated running the following acceptance runs with a release-debugger build of the shell.

Acceptance Runs:
./runtests.py as3/Statements/Exceptions as3/RuntimeErrors as3/ErrorObject ecma3/Exceptions ecma3/ErrorObject 
./runtests.py --vmargs=-Dnodebugger as3/Statements/Exceptions as3/RuntimeErrors as3/ErrorObject ecma3/Exceptions ecma3/ErrorObject 

Coverage classes: (covselect -l)
exclude all /
exclude folder ../../../tamarin-redux/
include source ../../../tamarin-redux/core/ErrorClass.cpp
include source ../../../tamarin-redux/core/ErrorClass.h

Coverage Results: (covclass -m)
Class                            Function Coverage           C/D Coverage
---------------------------  ---------------------  ---------------------
avmplus::                        11 /    11 = 100%       5 /     6 =  83%
avmplus::ErrorClass::             5 /     5 = 100%       0 /     0       
avmplus::ErrorObject::            4 /     4 = 100%       5 /     6 =  83%
avmplus::NativeErrorClass::       2 /     2 = 100%       0 /     0       
---------------------------  ---------------------  ---------------------
Total                            11 /    11 = 100%       5 /     6 =  83%

Additional testcase is simply to cover getStackTrace() within a known testcase. This is currently covered elsewhere in the suite, but this makes coverage easier to reproduce.

Add an acceptance pass in code coverage to pick up code paths available when debugger is compiled in BUT not enabled (via -Dnodebugger)
Attachment #484324 - Flags: review?(dschaffe)
Comment on attachment 484324 [details] [diff] [review]
Additional coverage for Error

- what does -Dnodebugger add to code coverage?
- I would have made the test smaller by just included the try/catch finally part of the test and not used getTestCases since there is only 1 test. but that is just me.
Attachment #484324 - Flags: review?(dschaffe) → review+
(In reply to comment #2)
> Comment on attachment 484324 [details] [diff] [review]
> Additional coverage for Error
> 
> - what does -Dnodebugger add to code coverage?

There are branches in the VM that check to see if a debugger is attached and they will only be compiled in if the build is debugger. So the -Dnodebugger gives the 'true' coverage of the following:
       63         #ifdef DEBUGGER
       64         AvmCore *core = this->core();
       65         if (!core->debugger())
       66             return;
Target Milestone: flash10.2.x-Spicy → flash10.x - Serrano
Comment on attachment 484324 [details] [diff] [review]
Additional coverage for Error

Patch pushed as 5373:fde08035a073
can close?
Target Milestone: Q3 11 - Serrano → Q4 11 - Anza
Brent, can this be closed?
Flags: flashplayer-bug-
Whiteboard: code-coverage → code-coverage, loose-end
Target Milestone: Q4 11 - Anza → Q1 12 - Brannan
Priority: P3 → P4
Assignee: brbaker → nobody
Target Milestone: Q1 12 - Brannan → Q2 12 - Cyril
No assignee, updating the status.
Status: ASSIGNED → NEW
No assignee, updating the status.
No assignee, updating the status.
No assignee, updating the status.
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: