Closed Bug 403180 Opened 17 years ago Closed 17 years ago

test_378216.js is asserting, but after printing PASS (so the test passes)

Categories

(Toolkit :: Add-ons Manager, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta2

People

(Reporter: Waldo, Assigned: Waldo)

References

Details

(Keywords: assertion)

Attachments

(1 file)

Our success condition for a test passing is that "PASS" is in its output, but if a test passes and then asserts, it should fail.  (There's a bug on file, Core:Testing somewhere.)  This test looks like it's being bitten by this problem; I haven't investigated to see exactly what's wrong with it.
Bug 368573, "Need a way to run tests (mochikit/reftest) that display as failed when assertion failures are encountered"?

Can you paste the assertion message in a comment here?
Component: Extension Compatibility → Extension/Theme Manager
QA Contact: extension.compatibility → extension.manager
This is one of the xpcshell tests, not a reftest/Mochitest; it's bug 353010.

The assertion is the generic "XPConnect called on scope without Components property", so some callback dance isn't being done correctly.
Blocks: 353010
A look at the stack of the assertion showed it happened in IO thread shutdown; a quick glance at the test showed it starts an HTTP server but never stops it, which causes the assertion.

I added a note to the HTTP server docs page on MDC mentioning that shutting down the server is mandatory, which hopefully might prevent this from happening as much in the future.
Assignee: nobody → jwalden+bmo
Status: NEW → ASSIGNED
Attachment #289000 - Flags: review?(dtownsend)
Comment on attachment 289000 [details] [diff] [review]
Shut down the server before ending testing

Oops, thanks for catching that. r=me
Attachment #289000 - Flags: review?(dtownsend) → review+
Checked in (and I suppose in-testsuite+ since the testcase is fixed now).
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3 M10
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: