Open
Bug 915518
Opened 11 years ago
Updated 2 years ago
Make CrashTestUtils available to mochi tests
Categories
(Toolkit :: Crash Reporting, defect)
Toolkit
Crash Reporting
Tracking
()
NEW
People
(Reporter: markh, Unassigned)
Details
Some mochitest-browser tests need to force a crash. CrashTestUtils looks perfect for the job, it it seems to only be available for xpcshell tests. It would be ideal if all flavors of mochi could use CrashTestUtils instead of rolling their own code to both crash and cleanup the minidumps. Eg, we currently have: http://mxr.mozilla.org/mozilla-central/source/dom/ipc/tests/process_error_contentscript.js http://mxr.mozilla.org/mozilla-central/source/toolkit/components/thumbnails/test/thumbnails_crash_content_helper.js and e10s testing could make good use of it. CCing Ted and Benjamin as they were involved in the initial landing (bug 620974)
Comment 1•11 years ago
|
||
We could move CrashTestUtils.jsm into TESTING_JS_MODULES nowadays. Those modules get exposed as resource://testing-common/ in most of our test harnesses (xpcshell and Mochitest definitely work, IIRC). The only tricky bit is that it wants to load its shared library via ctypes, so we need to get that copied to the right place and make sure the jsm can find it.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•