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

Exceptions during setUp of a C++ unit-test might fail to get reported

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Server Programmability
    • ALL

      The C++ unit-test framework accumulates regular exceptions occurring during suite execution and get reported at the end. However, due to the fact that there are really two phases of setting-up/tearing-down of a test (Constructor/setUp and tearDown/Destructor) it is possible that a failed setUp leaves the test in a state that the destructor doesn't expect, causing it to crash.

      This ticket is to add code to proactively log any exceptions that occur during setUp.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: