On Thu, Jan 28, 2016 at 5:00 PM Enrico Granata via lldb-commits < lldb-commits@lists.llvm.org> wrote:
> > + # This is the function to remove the custom formats in order to > have a > + # clean slate for the next test case. > + def cleanup(): > + self.runCmd('type category delete TSLSFormatters', > check=False) > + self.runCmd('type format clear', check=False) > + self.runCmd('type summary clear', check=False) > + self.runCmd('type filter clear', check=False) > + self.runCmd('type synth clear', check=False) > + > + self.addTearDownHook(cleanup) > Can this go in either the tearDown() function (i.e. analogue to setUp() or in a try/finally block? I'm planning to remove the teardownhook functionality in the future because it fundamentally doesn't work so the fewer we add the better.
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits