[Lldb-commits] [lldb] r221624 - Fix a problem reported by Ed Maste where the test harness was failing to call bound methods as cleanup hooks

Enrico Granata egranata at apple.com
Mon Nov 10 11:51:57 PST 2014


Author: enrico
Date: Mon Nov 10 13:51:57 2014
New Revision: 221624

URL: http://llvm.org/viewvc/llvm-project?rev=221624&view=rev
Log:
Fix a problem reported by Ed Maste where the test harness was failing to call bound methods as cleanup hooks

Modified:
    lldb/trunk/test/lldbtest.py

Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=221624&r1=221623&r2=221624&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Mon Nov 10 13:51:57 2014
@@ -1039,7 +1039,7 @@ class Base(unittest2.TestCase):
                 print >> sbuf, "Executing tearDown hook:", getsource_if_available(hook)
             import inspect
             hook_argc = len(inspect.getargspec(hook).args)
-            if hook_argc == 0:
+            if hook_argc == 0 or hook.im_self:
                 hook()
             elif hook_argc == 1:
                 hook(self)





More information about the lldb-commits mailing list