Closed Bug 519727 Opened 16 years ago Closed 16 years ago

test_bug430120.js fails on OS X Universal builds

Categories

(Toolkit :: Add-ons Manager, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta5-fixed

People

(Reporter: ted, Assigned: ted)

References

()

Details

Attachments

(1 file)

It looks like the XULAppInfo in this test isn't getting registered for some reason: TEST-UNEXPECTED-FAIL | /builds/moz2_slave/mozilla-central-macosx-opt-unittest-everythingelse/build/xpcshell/tests/test_extensionmanager/unit/test_bug430120.js | test failed (with xpcshell return code: 0), see following log: >>>>>>> TEST-INFO | (xpcshell/head.js) | test 1 pending TEST-PASS | /builds/moz2_slave/mozilla-central-macosx-opt-unittest-everythingelse/build/xpcshell/tests/test_extensionmanager/unit/test_bug430120.js | [run_test : 141] true == true TEST-INFO | (xpcshell/head.js) | test 2 pending *** Blocklist::_loadBlocklistFromFile: blocklist is disabled TEST-INFO | (xpcshell/head.js) | test 2 finished TEST-INFO | (xpcshell/head.js) | running event loop TEST-UNEXPECTED-FAIL | /builds/moz2_slave/mozilla-central-macosx-opt-unittest-everythingelse/build/xpcshell/tests/test_extensionmanager/unit/test_bug430120.js | xpcshell@tests.mozilla.org&1&XPCShell&1&2007010101&XPCShell_Universal-gcc3&locale&updatechannel&Darwin%209.2.0&1.9&distribution&distribution-version == xpcshell@tests.mozilla.org&1&XPCShell&1&2007010101&XPCShell_noarch-spidermonkey&locale&updatechannel&Darwin%209.2.0&1.9&distribution&distribution-version - See following stack: JS frame :: /builds/moz2_slave/mozilla-central-macosx-opt-unittest-everythingelse/build/xpcshell/head.js :: do_throw :: line 197 JS frame :: /builds/moz2_slave/mozilla-central-macosx-opt-unittest-everythingelse/build/xpcshell/head.js :: do_check_eq :: line 227 JS frame :: /builds/moz2_slave/mozilla-central-macosx-opt-unittest-everythingelse/build/xpcshell/tests/test_extensionmanager/unit/test_bug430120.js :: pathHandler :: line 104 JS frame :: /builds/moz2_slave/mozilla-central-macosx-opt-unittest-everythingelse/build/Minefield.app/Contents/MacOS/components/httpd.js :: anonymous :: line 2160 JS frame :: /builds/moz2_slave/mozilla-central-macosx-opt-unittest-everythingelse/build/Minefield.app/Contents/MacOS/components/httpd.js :: anonymous :: line 1085
Note that this is a universal build + a universal test package, so everything including xpcshell is a universal binary.
Mossop points out the ifdef here which is clearly the culprit: http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/src/nsBlocklistService.js#353 This patch adds the same special casing to the test, and makes it pass for me.
Assignee: nobody → ted.mielczarek
Status: NEW → ASSIGNED
Attachment #404036 - Flags: review?(dtownsend)
Attachment #404036 - Flags: review?(dtownsend) → review+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Blocks: 486783
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: