Bug 1353858 - Fix ASAN leak detection in mochitest, r=ato
The gecko messages are now in the "process_output" action, rather than
in the "log" action (except for a few legacy cases), so examine both
when looking for LSAN messages.
MozReview-Commit-ID: 82r1p8WLwFa
--- a/testing/mochitest/runtests.py
+++ b/testing/mochitest/runtests.py
@@ -2716,18 +2716,19 @@ toolbar#nav-bar {
def dumpScreenOnFail(self, message):
if self.dump_screen_on_fail and 'expected' in message and message[
'status'] == 'FAIL':
self.harness.dumpScreen(self.utilityPath)
return message
def trackLSANLeaks(self, message):
- if self.lsanLeaks and message['action'] == 'log':
- self.lsanLeaks.log(message['message'])
+ if self.lsanLeaks and message['action'] in ('log', 'process_output'):
+ line = message['message'] if message['action'] == 'log' else message['data']
+ self.lsanLeaks.log(line)
return message
def trackShutdownLeaks(self, message):
if self.shutdownLeaks:
self.shutdownLeaks.log(message)
return message
def getDirectories(self, options):