Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/ipc/glue/test/browser/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  browser_utility_crashReporter.js   Sprache: JAVA

 
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */


"use strict";

async function startAndCrashUtility(numUnknownActors, actorsCheck) {
  const actors = Array(numUnknownActors).fill("unknown");
  const utilityPid = await startUtilityProcess(actors);
  await crashSomeUtility(utilityPid, actorsCheck);
}

// When running full suite, previous tests may have left some utility
// processes running and this might interfere with our testing.
add_setup(async function ensureNoExistingProcess() {
  await killUtilityProcesses();
});

add_task(async function utilityNoActor() {
  await startAndCrashUtility(0, actorNames => {
    return actorNames === undefined;
  });
});

add_task(async function utilityOneActor() {
  await startAndCrashUtility(1, actorNames => {
    return actorNames === kGenericUtilityActor;
  });
});

add_task(async function utilityManyActors() {
  await startAndCrashUtility(42, actorNames => {
    return actorNames === Array(42).fill("unknown").join(", ");
  });
});

Messung V0.5
C=92 H=100 G=95

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.