Closed Bug 562762 Opened 14 years ago Closed 14 years ago

cfx testall test failure on 3.7a5pre nightly build (tests-failed count is incremented by any ambient error)

Categories

(Add-on SDK Graveyard :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 581109

People

(Reporter: myk, Unassigned)

References

Details

One test is failing for me when I run cfx testall on the 0.3 release (as well as the tip) against a recent nightly build of Firefox 3.7a5pre.  Unfortunately, it's unclear what test is failing.  The console output shows the following:

console: [JavaScript Error: "[Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]"  nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)"  location: "JS frame :: file:///home/myk/Applications/firefox-3.7-nightly/components/nsBrowserGlue.js :: anonymous :: line 44"  data: no]" {file: "file:///home/myk/Applications/firefox-3.7-nightly/components/nsBrowserGlue.js" line: 44}]
......console: [JavaScript Error: "Unable to find bookmarks.html file." {file: "file:///home/myk/Applications/firefox-3.7-nightly/components/nsBrowserGlue.js" line: 775}]
console: [JavaScript Error: "this._distributionCustomizer is undefined" {file: "file:///home/myk/Applications/firefox-3.7-nightly/components/nsBrowserGlue.js" line: 133}]
..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Tracked memory objects in testing sandbox: 2
error: warnings and/or errors were logged.
Is this a duplicate of bug 553070?
Erm, I should have been clearer.  The problem being reported here is "923 of 924 tests passed."  Perhaps that's due to nsBrowserGlue (which shows up in the console), although it's unclear.  If so, however I still wouldn't say this is a duplicate, more that this bug depends on the fix for that one.
It's quite problematic that failed test names are not printed to the console. I've filed bug 563681 for this.
I could be wrong, but I think no test file per se actually failed here, so there's no test name.  This line

  error: warnings and/or errors were logged.

is printed out if there were any errors logged to the console -- in this case the nsBrowserGlue stuff -- and results.failed is also incremented (packages/test-harness/lib/harness.js).  Total number of tests = results.passed + results.failed, which accounts for the "923 of 924 tests passed" message.
Ok, thanks for clarifying. I morphed that other bug to be about not incrementing the number of tests failed, since that's not actually what's happened.
The fact that the tests-failed count is incremented by any ambient error is continually confusing people. I'm going to dupe those bugs against this original one.
Summary: cfx testall test failure on 3.7a5pre nightly build → cfx testall test failure on 3.7a5pre nightly build (tests-failed count is incremented by any ambient error)
Oops, can't believe I didn't see/remember this before filing bug 581109. Since the latter is fixed, however, I'm just going to mark this as a dupe.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
The Add-on SDK is no longer a Mozilla Labs experiment and has become a big enough project to warrant its own Bugzilla product, so the "Add-on SDK" product has been created for it, and I am moving its bugs to that product.

To filter bugmail related to this change, filter on the word "looptid".
Component: Jetpack SDK → General
Product: Mozilla Labs → Add-on SDK
QA Contact: jetpack-sdk → general
You need to log in before you can comment on or make changes to this bug.