gecko-dev/testing/xpcshell
Andrew Halberstadt f5673bd1ad Bug 1316309 - Use mozcrash.kill_and_get_minidump() in xpcshell instead of automation.py, r=ted
There are a number of things that were going wrong with XPCShell on windows, this patch address them:

1) We were erroring out in Automation.killAndGetStack(), both failing to produce a minidump and failing
to kill the process. This patch fixes both these issues by using mozcrash instead.

2) Occasionally we were occasionally raising a psutil.NoSuchProcess error when attempting to kill the
process after the test. This appears to be caused by a race condition, but is safe to ignore as if the
process doesn't exist, then we don't need to kill it.

3) Spurious "Unable to remove directory" errors in cleanup. This uses mozfile.remove to remedy this.

MozReview-Commit-ID: 1g5qO8fpM7R

--HG--
extra : rebase_source : d8508d0f07e537e0b27e3377ccdbc20e1177d110
2016-11-09 10:32:46 -05:00
..
example Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
moz-http2 Bug 1296280 (part 0b) - Make debugging node h2 server work better r=mcmanus 2016-09-07 09:43:47 -07:00
node-http2 Bug 1296280 (part 0a) - Update to node-http2 3.3.6 r=mcmanus 2016-09-16 08:54:03 -07:00
dbg-actors.js Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau 2015-10-21 12:48:53 -05:00
head.js Bug 1267495 - Fallback to local config for fresh GMP installs. r=mconley, r=rhelmer, feedback=ksteuber 2016-09-27 11:57:41 +01:00
mach_commands.py Bug 1316408 - Remove all b2g related code from testing/xpcshell, r=jmaher 2016-11-09 14:50:45 -05:00
mach_test_package_commands.py Bug 1300163 - Reuse the 'e10s' value from the mozharness config on interactive loaners, r=armenzg 2016-09-02 14:42:36 -04:00
moz.build Bug 1286877 - do not set c-basic-offset for python-mode; r=gps 2016-07-14 10:16:42 -06:00
README
remotexpcshelltests.py Bug 1307886 - [3.2] Extract xz-compressed libs for xpcshell and unit tests. r=glandium 2016-10-28 12:59:23 +02:00
runxpcshelltests.py Bug 1316309 - Use mozcrash.kill_and_get_minidump() in xpcshell instead of automation.py, r=ted 2016-11-09 10:32:46 -05:00
selftest.py Bug 1296814 - Remove Parser::reportBadReturn and report simpler errors that don't use the offset of a node as location. r=arai 2016-11-13 00:11:39 -08:00
xpcshell.eslintrc.js Bug 1315781 - Enable no-shadow rule for eslint for xpcshell mochitests. r=mossop 2016-11-07 22:34:25 -05:00
xpcshellcommandline.py Bug 1316408 - Remove all b2g related code from testing/xpcshell, r=jmaher 2016-11-09 14:50:45 -05:00

Simple xpcshell-based test harness

converted from netwerk/test/unit

Some documentation at http://developer.mozilla.org/en/docs/Writing_xpcshell-based_unit_tests
See also http://wiki.mozilla.org/SoftwareTesting:Tools:Simple_xpcshell_test_harness