ci: Run fuzz testing test cases under valgrind

This commit is contained in:
practicalswift committed 2020-02-18 06:56:26 +00:00
1 parent 179504ccb6
commit a3b539a924
4 files changed
+26 -3

No files matched your search

+2 -2
View File
@@ -64,7 +64,7 @@ def main():
parser.add_argument(
'--valgrind',
action='store_true',
help='If true, run fuzzing binaries under the valgrind memory error detector. Valgrind 3.14 or later required.',
help='If true, run fuzzing binaries under the valgrind memory error detector',
)
parser.add_argument(
'seed_dir',
@@ -150,7 +150,7 @@ def run_once(*, corpus, test_list, build_dir, export_coverage, use_valgrind):
corpus_path,
]
if use_valgrind:
args = ['valgrind', '--quiet', '--error-exitcode=1', '--exit-on-first-error=yes'] + args
args = ['valgrind', '--quiet', '--error-exitcode=1'] + args
logging.debug('Run {} with args {}'.format(t, args))
result = subprocess.run(args, stderr=subprocess.PIPE, universal_newlines=True)
output = result.stderr