Commit Graph
33 Commits
Author SHA1 Message Date
Marco Castelluccio cb5c0a372f Bug 1502021 - Keep renaming __gcov_flush in LLVM to avoid naming clashes with builds mixing GCC and LLVM coverage instrumentation. r=decoder 2018-11-14 01:41:22 +01:00
Marco Castelluccio 009d460fab Bug 1504073 - Close output stream for flushing JS coverage data after we're done writing. r=froydnj 2018-11-02 01:03:11 +01:00
Cosmin Sabou b74d082dea Backed out 2 changesets (bug 1504073) for spidermonkey build bustages on functionnames.js
Backed out changeset 8d667ad8e5aa (bug 1504073)
Backed out changeset 3d14a1201277 (bug 1504073)
2018-11-05 15:47:07 +02:00
Marco Castelluccio 575752f65e Bug 1504073 - Close output stream for flushing JS coverage data after we're done writing. r=froydnj 2018-11-02 01:03:11 +01:00
Marco Castelluccio 043f17d480 Bug 1380661 - Make use of JS engine coverage flushing functionality to reset/dump counters in per-test mode. r=jmaher 2018-10-24 21:33:01 +02:00
Marco Castelluccio 7e8aa3eade Bug 1380661 - Test JS counters are being flushed. r=nbp 2018-10-24 21:33:14 +02:00
Marco Castelluccio c859e04fb2 Bug 1380661 - Flush JS counters too when flushing GCOV counters. r=froydnj 2018-10-24 21:32:41 +02:00
Marco Castelluccio 6e5b534c8e Bug 1498637 - Use __gcov_flush to implement dumping and resetting instead of __gcov_dump and __gcov_reset. r=froydnj 2018-10-15 10:36:45 +02:00
Jan de Mooij 27a0a40d8e Bug 1474272 part 4 - Stop using js::GetGlobalForObjectCrossCompartment in xpc::NativeGlobal. r=bholley 2018-08-01 11:25:50 +02:00
Marco Castelluccio 422db5e485 Bug 1476213 - Include process.h on Windows and define getpid as _getpid. r=me 2018-07-17 12:09:16 +02:00
Marco Castelluccio a0798327b5 Bug 1476213 - Be more verbose when resetting/dumping counters. r=calixte 2018-07-17 10:05:45 +02:00
Marco Castelluccio 6b565883aa Bug 1471573 - Make SpecialPowers RequestDumpCoverageCounters and RequestResetCoverageCounters async messages that wait on the dumping/resetting to actually happen. r=jmaher 2018-06-28 09:40:32 +01:00
Marco Castelluccio 1aa23e2062 Bug 1472688 - Remove any gcda file left in GCOV_PREFIX when resetting counters, and make it possible to accumulate counters. r=jmaher 2018-07-02 14:53:07 +01:00
Calixte Denizet a5ca89d1f0 Bug 1471882 - Fix build bustage on nsCodeCoverage.cpp r=marco
Summary:
- Add explicit keyword on ProcessCount ctor
- Fix an unused variable in a loop

Reviewers: marco

Reviewed By: marco

Bug #: 1471882

Differential Revision: https://phabricator.services.mozilla.com/D1864
2018-06-30 01:14:21 +03:00
Marco Castelluccio 2f0e28626e Bug 1471769 - Make sure PerTestCoverageUtils doesn't do anything unless per-test mode is enabled. r=jmaher 2018-06-28 09:35:45 +01:00
Marco Castelluccio abd25bad64 Bug 1470151 - Add a PerTestCoverageUtils JavaScript module to manage resetting/dumping coverage counters for tests. r=jmaher 2018-06-21 14:40:20 +01:00
Marco Castelluccio 7baf77c4c4 Bug 1470151 - Make dumpCoverage and resetCoverage return a Promise that is resolved when the parent process and all content processes are done with dumping or resetting coverage counters. r=froydnj 2018-06-22 14:31:59 +01:00
Coroiu Cristina de9b32d20d Backed out 3 changesets (bug 1470151) for build bustage at testing/xpcshell/selftest.py on a CLOSED TREE
Backed out changeset c73f394a4bef (bug 1470151)
Backed out changeset 3579431e03dc (bug 1470151)
Backed out changeset ddde7dd347d4 (bug 1470151)
2018-06-27 16:57:10 +03:00
Marco Castelluccio bc2cc7ea8f Bug 1470151 - Add a PerTestCoverageUtils JavaScript module to manage resetting/dumping coverage counters for tests. r=jmaher 2018-06-21 14:40:20 +01:00
Marco Castelluccio c1de911ed9 Bug 1470151 - Make dumpCoverage and resetCoverage return a Promise that is resolved when the parent process and all content processes are done with dumping or resetting coverage counters. r=froydnj 2018-06-22 14:31:59 +01:00
Marco Castelluccio 17b0833350 Bug 1465737 - Make CodeCoverageHandler constructor explicit. r=froydnj 2018-05-30 01:52:55 +02:00
Mark Banner 4fd95a27c9 Bug 1230369 - Manually fix some remaining instances of Ci/Cc/Cu definitions and switch Components.* to using the shorthand in some places. r=florian
MozReview-Commit-ID: 9SmoR9RlvZE
2018-02-07 09:24:15 +00:00
Andrew McCreight 3182f8489e Bug 1432992, part 2 - Manually remove some empty blocks. r=florian
Also, remove a now-obsolete comment from placesOverlay.xul and remove
some now-empty XPCShell test head files.

MozReview-Commit-ID: 6kKVQu8FAL3
2018-01-25 16:52:25 -08:00
Andrew McCreight 272cee1e65 Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG
2018-02-06 09:36:57 -08:00
Marco Castelluccio 162624effa Bug 1416199 - Don't try to set signal handlers in Windows coverage build. r=froydnj 2017-11-10 12:50:14 +01:00
Marco Castelluccio 9baa6663ef Bug 1403143 - Remove useless 'using namespace mozilla::ipc' from CodeCoverageHandler. r=jmaher 2017-09-26 13:48:17 +02:00
Marco Castelluccio e86f66afac Bug 1397505 - Only support dumping/resetting coverage counters with GCC builds. r=froydnj 2017-09-07 00:31:03 +02:00
Christian Holler 9fc0d3c5ee Bug 1390945 - Make GCOV signal handlers work in --disable-debug mode. r=froydnj
MozReview-Commit-ID: Lm8IhokH3ns
2017-08-16 20:39:26 +02:00
Marco Castelluccio a4f2544f9e Bug 1380659 - Move xpcshell and mochitest in different directories. r=me 2017-07-21 20:22:07 +02:00
Marco Castelluccio 2955c2a7cd Bug 1380659 - Test SpecialPowers API to dump/reset coverage counters with a mochitest. r=jmaher 2017-07-14 11:02:50 +02:00
Marco Castelluccio 20ff3964ea Bug 1380659 - Add xpcshell test with child and parent process, where the parent process requests dump of coverage counters. r=erahm 2017-07-14 11:01:07 +02:00
Marco Castelluccio bd17a3cf55 Bug 1380659 - Add basic xpcshell test for the code coverage component. r=erahm 2017-07-14 10:59:12 +02:00
Marco Castelluccio eb71271b87 Bug 1380659 - Introduce code coverage component to dump/reset coverage counters. r=erahm 2017-07-14 10:58:56 +02:00