Actions
Feature #1761
closedFeature #1758: Cleanup unit tests.
Unit tests: Provide macros for clean test failures.
Description
Some macros could be:
FAIL_IF(expr)
FAIL_IF_NOT(expr)
FAIL_IF_NULL(expr)
FAIL_IF_NOT_NULL(expr)
PASS
PASS_IF
The fail macros will simply return 0 if expression fails. If fatal unit tests are enabled, BUG_ON will be called for a failure line number.
Cleanup in a failure case will no longer be required.
Actions