From fa35c4239f9b5a35ed46d0af8472c74610cba5c4 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Tue, 18 Jun 2019 16:31:17 -0400 Subject: [PATCH 1/2] test: Log output even if fuzzer failed --- test/fuzz/test_runner.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/fuzz/test_runner.py b/test/fuzz/test_runner.py index 1869f717539..f19cf924d25 100755 --- a/test/fuzz/test_runner.py +++ b/test/fuzz/test_runner.py @@ -106,8 +106,10 @@ def run_once(*, corpus, test_list, build_dir, export_coverage): os.path.join(corpus, t), ] logging.debug('Run {} with args {}'.format(t, args)) - output = subprocess.run(args, check=True, stderr=subprocess.PIPE, universal_newlines=True).stderr + result = subprocess.run(args, stderr=subprocess.PIPE, universal_newlines=True) + output = result.stderr logging.debug('Output: {}'.format(output)) + result.check_returncode() if not export_coverage: continue for l in output.splitlines(): From fa410f67aa1d0ccd306dc16e438c1a034b8cc049 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Tue, 18 Jun 2019 16:39:39 -0400 Subject: [PATCH 2/2] test: Suppress false positive leak in secure_allocator --- test/sanitizer_suppressions/lsan | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/sanitizer_suppressions/lsan b/test/sanitizer_suppressions/lsan index 6f15c0f1d43..90a92a5115a 100644 --- a/test/sanitizer_suppressions/lsan +++ b/test/sanitizer_suppressions/lsan @@ -4,3 +4,6 @@ leak:libqminimal leak:libQt5Core leak:libQt5Gui leak:libQt5Widgets + +# false-positive due to use of secure_allocator<> +leak:GetRNGState