HomePhabricator

bench: Fix negative values and zero for -evals flag

Description

bench: Fix negative values and zero for -evals flag

Summary: This is a backport of Core PR17267

Test Plan:

$ ninja
$ src/bench/bitcoin-bench -evals -2
Error parsing command line arguments: Invalid parameter -2
$ echo $?
1
$ src/bench/bitcoin-bench -evals=0
$ echo $?
0

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, majcosta

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D8231

Details

Provenance
nijynot <nijynot@gmail.com>Authored on Nov 2 2020, 16:55
PiRKCommitted on Nov 2 2020, 16:56
abc-botPushed on Nov 2 2020, 17:01
Reviewer
Restricted Owners Package
Differential Revision
D8231: bench: Fix negative values and zero for -evals flag
Parents
rABC334c2a6c1e9a: [backport#12437] [Trivial] Simplify if-else blocks and more descriptive…
Branches
Unknown
Tags
Unknown