Facility for running tests under failgrind.

pull/2438/head
Roger A. Light 4 years ago
parent d546ba461a
commit 33f2817b1e

@ -45,6 +45,8 @@ def start_broker(filename, cmd=None, port=0, use_conf=False, expect_fail=False,
cmd = ['valgrind', '-q', '--tool=callgrind', '--log-file='+logfile] + cmd
elif os.environ.get('MOSQ_USE_VALGRIND') == 'massif':
cmd = ['valgrind', '-q', '--tool=massif', '--log-file='+logfile] + cmd
elif os.environ.get('MOSQ_USE_VALGRIND') == 'failgrind':
cmd = ['fg-helper'] + cmd
else:
cmd = ['valgrind', '-q', '--trace-children=yes', '--leak-check=full', '--show-leak-kinds=all', '--log-file='+logfile] + cmd
vg_logfiles.append(logfile)

Loading…
Cancel
Save