Project

General

Profile

Actions

Feature #1761

closed

Feature #1758: Cleanup unit tests.

Unit tests: Provide macros for clean test failures.

Added by Jason Ish about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:

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 #1

Updated by Jason Ish about 8 years ago

  • Parent task set to #1758
Actions #2

Updated by Jason Ish about 8 years ago

  • Status changed from Assigned to Closed
Actions #3

Updated by Jason Ish about 8 years ago

  • Target version changed from 3.1 to 3.1rc1
Actions

Also available in: Atom PDF