Skip to content

In utassert.h allow all UtAssert macros to use UtAssertEx and __VA_ARGS__ for dynamic output strings #628

@asgibson

Description

@asgibson

Is your feature request related to a problem? Please describe.
I have to add UtAssert_True as an outer shell to any of the asserts that do not use dynamic arguments.

Describe the solution you'd like
Update all the macros (except for UtAssert_Simple) to use UtAssertEx as the base function, removing description and adding VA_ARGS.

Describe alternatives you've considered
UtAssert_True wrapper around calls, but this results in two asserts per check which is unnecessary.

Additional context
Wrote up the change and did not see any issues while building or running tests.

Requester Info
Alan Gibson NASA GSFC/587

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementunit-testTickets related to the OSAL unit testing (functional and/or coverage)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions