Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android' OR os == 'win' && msix OR os == 'win'
- Manifest: toolkit/crashreporter/test/unit/xpcshell.toml
/* Any copyright is dedicated to the Public Domain.
add_task(async function run_test() {
// Try crashing with an abort().
await do_crash(
function () {
crashType = CrashTestUtils.CRASH_ABORT;
crashReporter.annotateCrashReport("TestKey", "TestValue");
},
function (mdump, extra) {
Assert.equal(extra.TestKey, "TestValue");
},
// process will exit with a zero exit status
true
);
});