[Lldb-commits] [PATCH] D13788: Factor the execution of a test method into its own function to ensure proper cleanup

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 15 15:29:06 PDT 2015


zturner added a subscriber: zturner.
zturner accepted this revision.
zturner added a reviewer: zturner.

================
Comment at: test/lldbtest.py:2548-2550
@@ -2546,1 +2547,5 @@
 
+        # Ensure all the references to SB objects have gone away so that we can
+        # be sure that all the modules referenced by the target are orphaned and
+        # released.
+        gc.collect()
----------------
This problem is more general than just modules.  Maybe it could say "so that we can be sure that all test-specific resources have been freed before we attempt to delete the targets."


http://reviews.llvm.org/D13788





More information about the lldb-commits mailing list