Execute fixture teardown as part of Test::run

XMLWordPrintableJSON

    • Server Programmability
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 .

       

            Assignee:
            Unassigned
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: