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.
Updated by Jason Ish almost 9 years ago
- Status changed from Assigned to Closed
Updated by Jason Ish almost 9 years ago
- Target version changed from 3.1 to 3.1rc1
Actions