Page MenuHomePhabricator

[SECP256K1] Fix ability to compile tests without -DVERIFY.
ClosedPublic

Authored by Fabien on Feb 19 2020, 08:55.

Details

Summary
It's important that the tests are also run without -DVERIFY due to
 the possibility that side-effects of a VERIFY_CHECK fix a bug that
 would otherwise be detected.

Use of the verify_check macro in tests isn't sufficient.

Backport of secp256k1 PR628:
https://github.com/bitcoin-core/secp256k1/pull/628

This will also fix the build with coverage for secp256k1.

Test Plan
ninja check-secp256k1-tests

On secp256k1 standalone:

../configure --enable-coverage # will undefine VERIFY
make check

Diff Detail

Repository
rABC Bitcoin ABC
Branch
secp256k1_PR628
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 9530
Build 16970: Default Diff Build & Tests
Build 16969: arc lint + arc unit