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 TLV test to produce more useful failure output. #9934

Merged

Conversation

bzbarsky-apple
Copy link
Contributor

Assertions inside the Get<> function are hard to trace back to the
actual Get<> caller, because they just list the line number of the
Get<> function. Replace it with a macro, so we get more useful output
on failure.

Problem

See above.

Change overview

See above.

Testing

Ran the test; it passed.

The original fix was provided by @bitkis in #5764

Assertions inside the Get<> function are hard to trace back to the
actual Get<> caller, because they just list the line number of the
Get<> function.  Replace it with a macro, so we get more useful output
on failure.
@bzbarsky-apple bzbarsky-apple merged commit 3647c29 into project-chip:master Sep 24, 2021
@bzbarsky-apple bzbarsky-apple deleted the tlv-better-test-output branch September 24, 2021 01:07
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.

5 participants