Closed
Bug 710761
Opened 13 years ago
Closed 7 years ago
add test for cycle collector listener begin failure
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
INCOMPLETE
mozilla11
People
(Reporter: mccr8, Unassigned)
References
Details
Attachments
(1 file)
3.24 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
This invokes the cycle collector with a special listener implemented in JS.
The begin() fails with an NS_ERROR_FAILURE. Every other callback clears a flag. The test fails if the flag is ever cleared. This actually tests the case where the CC dump file can't be created, without actually dumping a file.
I checked that this test fails without the patch in bug 694436, and passes on m-c on all platforms.
Reporter | ||
Comment 1•13 years ago
|
||
Test-only change, so just looking for an rs kind of thing. All other comments welcome, of course.
Assignee: nobody → continuation
Attachment #581678 -
Flags: review?(bobbyholley+bmo)
Comment 2•13 years ago
|
||
Comment on attachment 581678 [details] [diff] [review]
add a test
Same review comments for the other test apply - Look into the broken link, and either use Cc, Ci, etc, or don't define them.
Attachment #581678 -
Flags: review?(bobbyholley+bmo) → review+
Reporter | ||
Comment 3•13 years ago
|
||
Ah, good point. Thanks for the reviews.
Reporter | ||
Comment 4•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
Reporter | ||
Comment 5•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e517d4c43143
Backed out because it caused an infinite loop with single threading of JS. Calling JS while on the CC thread is a bad idea, apparently. I'll rewrite the empty listener in C++ I guess.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Comment 6•9 years ago
|
||
The listener is fixed now, so it will be harder to test this. I think you have to somehow generate an invalid file name.
Assignee: continuation → nobody
Reporter | ||
Updated•7 years ago
|
Status: REOPENED → RESOLVED
Closed: 13 years ago → 7 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•