mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-16 11:53:07 +02:00
fuzz: Remove unused TimeoutExpired catch in fuzz runner
Can be reviewed with --ignore-all-space
This commit is contained in:
parent
14b8dfb2bd
commit
fa4804009c
@ -151,24 +151,21 @@ def main():
|
|||||||
)
|
)
|
||||||
logging.info("Please consider adding a fuzz corpus at https://github.com/bitcoin-core/qa-assets")
|
logging.info("Please consider adding a fuzz corpus at https://github.com/bitcoin-core/qa-assets")
|
||||||
|
|
||||||
try:
|
print("Check if using libFuzzer ... ", end='')
|
||||||
help_output = subprocess.run(
|
help_output = subprocess.run(
|
||||||
args=[
|
args=[
|
||||||
fuzz_bin,
|
fuzz_bin,
|
||||||
'-help=1',
|
'-help=1',
|
||||||
],
|
],
|
||||||
env=get_fuzz_env(target=test_list_selection[0], source_dir=config['environment']['SRCDIR']),
|
env=get_fuzz_env(target=test_list_selection[0], source_dir=config['environment']['SRCDIR']),
|
||||||
timeout=20,
|
check=False,
|
||||||
check=False,
|
stderr=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE,
|
text=True,
|
||||||
text=True,
|
).stderr
|
||||||
).stderr
|
using_libfuzzer = "libFuzzer" in help_output
|
||||||
using_libfuzzer = "libFuzzer" in help_output
|
print(using_libfuzzer)
|
||||||
if (args.generate or args.m_dir) and not using_libfuzzer:
|
if (args.generate or args.m_dir) and not using_libfuzzer:
|
||||||
logging.error("Must be built with libFuzzer")
|
logging.error("Must be built with libFuzzer")
|
||||||
sys.exit(1)
|
|
||||||
except subprocess.TimeoutExpired:
|
|
||||||
logging.error("subprocess timed out: Currently only libFuzzer is supported")
|
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
with ThreadPoolExecutor(max_workers=args.par) as fuzz_pool:
|
with ThreadPoolExecutor(max_workers=args.par) as fuzz_pool:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user