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

[test] validation_block_tests: Correcting BOOST_ASSERT_MSG usage for dynamic messages. #2366

Conversation

furszy
Copy link

@furszy furszy commented May 5, 2021

Bug discovered checking GA failing reason in #2314 --> job

Essentially, BOOST_ASSERT_MSG only prints static string messages. As we are inputting a dynamic message, the value isn't being printed if the test fails.
So, have added a new function ASSERT_WITH_MSG(cond, msg) to support dynamic error messages.

…rror messages.

 BOOST_ASSERT_MSG only prints static string messages and that isn't enough to understand possible problems.
@furszy furszy self-assigned this May 5, 2021
@random-zebra random-zebra added this to the 6.0.0 milestone May 5, 2021
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 8ff6fa2 and merging... (this means another rebase for #2360)

@random-zebra random-zebra merged commit 948bb36 into PIVX-Project:master May 5, 2021
@furszy furszy deleted the 2021_better_block_validation_tests_error_catching branch November 29, 2022 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants