Page MenuHomePhabricator

bench: Fix negative values and zero for -evals flag
ClosedPublic

Authored by PiRK on Nov 2 2020, 09:15.

Details

Reviewers
majcosta
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Commits
rABC8dab59074ce6: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable