Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-14526

Introduce unittest macros that allow inspecting the exception thrown in ASSERT_THROWS.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.4
    • Component/s: Testing Infrastructure
    • Labels:
      None

      Description

      Two new macros, ASSERT_THROWS_WHAT and ASSERT_THROWS_PRED allow checking the thrown exception for a specific what() string or arbitrary predicate, respectively.

        Attachments

          Activity

            People

            Assignee:
            schwerin Andy Schwerin
            Reporter:
            schwerin Andy Schwerin
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: