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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.4
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None

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

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: