[lldb] Print the exception traceback when hitting cleanup errors
authorRaphael Isemann <teemperor@gmail.com>
Mon, 17 Aug 2020 07:53:25 +0000 (09:53 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 17 Aug 2020 07:53:52 +0000 (09:53 +0200)
commit24fc3177c1767535aeb494511a13dabf9f6de647
tree02ccd3a65c883e58b9327dd07935c3919271cbd1
parenta206f8509124c483358eb6e80e08bf621efd7655
[lldb] Print the exception traceback when hitting cleanup errors

Right now if the test suite encounters a cleanup error it just prints "CLEANUP
ERROR:" but not any additional information.

This patch just prints the exception that caused the cleanup error. This should
make debugging the failing tests for D83865 easier (and seems in general nice to
have).

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D83874
lldb/packages/Python/lldbsuite/test/test_result.py