summaryrefslogtreecommitdiffstats
path: root/toolkit/crashreporter/test/unit/test_crash_abort.js
blob: 67008346f8dbe649724e0d9bbf92640f991a792e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */

function run_test()
{
  // Try crashing with an abort().
  do_crash(function() {
             crashType = CrashTestUtils.CRASH_ABORT;
             crashReporter.annotateCrashReport("TestKey", "TestValue");
           },
           function(mdump, extra) {
             do_check_eq(extra.TestKey, "TestValue");
           },
          // process will exit with a zero exit status
          true);
}