Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid calling GetCoin and SignTransaction() inside of assert(...) in tests #29572

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

UdjinM6
Copy link
Contributor

@UdjinM6 UdjinM6 commented Mar 6, 2024

Technically, it's not possible to compile without assertions at the moment because of this check. However, if it would be removed one day then txpackage_tests will start to fail for such builds.

Running txpackage_tests compiled with the check removed and CPPFLAGS="-DNDEBUG":
master: *** 21 failures are detected in the test module "Bitcoin Core Test Suite"
this PR: *** No errors detected

@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 6, 2024

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.
A summary of reviews will appear here.

@maflcko
Copy link
Member

maflcko commented Mar 12, 2024

If you are worried about assert, you can use Assert, which does not have the "problem".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants