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

Execute fixture teardown as part of Test::run

    XMLWordPrintableJSON

Details

    • Service Arch
    • ALL

    Description

      Test fixtures' teardown methods are currently executed as part the UnitTestEnvironment destructor, potentially resulting in a loss of exception infos: when an exception is thrown during teardown, the stack is unwinded before throwing. However, in case of additional exception being thrown by an unwind destructor, the program is terminated right away with the current backtrace.

      As a result, the original teardown exception is going to be hidden, making debug extremely difficult.

      Following the pattern implemented by googletest::UnitTest, the teardown should be executed as part of Test::run .

       

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: