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

XMLWordPrintableJSON

    • Server Programmability
    • Fully Compatible
    • ALL
    • Programmability 2026-01-05, Programmability 2026-01-19
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:
            Alex Li
            Reporter:
            Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: