summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/lldbutil/iter
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/python_api/lldbutil/iter')
-rw-r--r--lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py9
-rw-r--r--lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py10
2 files changed, 4 insertions, 15 deletions
diff --git a/lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py b/lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py
index 124f7031597..c8ee37c1661 100644
--- a/lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py
+++ b/lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py
@@ -2,9 +2,10 @@
Test the iteration protocol for some lldb container objects.
"""
+import lldb_shared
+
import os, time
import re
-import unittest2
import lldb
from lldbtest import *
@@ -117,9 +118,3 @@ class LLDBIteratorTestCase(TestBase):
print frame
self.assertTrue(stopped_due_to_breakpoint)
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
diff --git a/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py b/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
index 32d660e5950..0a49bc2fe4a 100644
--- a/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
+++ b/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
@@ -2,9 +2,10 @@
Test the iteration protocol for frame registers.
"""
+import lldb_shared
+
import os, time
import re
-import unittest2
import lldb
from lldbtest import *
@@ -89,10 +90,3 @@ class RegistersIteratorTestCase(TestBase):
# We've finished dumping the registers for frame #0.
break
-
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
OpenPOWER on IntegriCloud