ci: Run fuzz testing test cases under valgrind

This commit is contained in:
practicalswift
2020-02-17 13:34:51 +00:00
parent 179504ccb6
commit a3b539a924
4 changed files with 26 additions and 3 deletions

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