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

Allow user-defined TEST_PROTECT & TEST_ABORT macros #695

Commits on Sep 4, 2023

  1. Allow user-defined TEST_PROTECT & TEST_ABORT macros

    However rare, this update covers real-world use cases where:
    - Unity is used to provide the assertion macros only, and an external
      test harness/runner is used for test orchestration/reporting.
    - Calling longjmp on a given platform is possible, but has a
      platform-specific (or implementation-specific) set of prerequisites,
    e.g. privileged access level.
    
    Enable project-specific customisation of TEST_PROTECT and TEST_ABORT
    macros.
    - Use the user-defined UNITY_TEST_ABORT if available; fall back to
      default behaviour otherwise.
    - Use the user-defined UNITY_TEST_PROTECT if available; fall back to
      default behaviour otherwise.
    - These may be defined independently.
    fkjagodzinski committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    710bb58 View commit details
    Browse the repository at this point in the history