summaryrefslogtreecommitdiffstats
path: root/lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py')
-rw-r--r--lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py b/lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py
index 6ea706a0bcb..312d9de6d10 100644
--- a/lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py
+++ b/lldb/test/expression_command/persistent_ptr_update/TestPersistentPtrUpdate.py
@@ -2,7 +2,8 @@
Test that we can have persistent pointer variables
"""
-import unittest2
+import lldb_shared
+
import lldb
import lldbutil
from lldbtest import *
@@ -36,9 +37,3 @@ class PersistentPtrUpdateTestCase(TestBase):
self.runCmd("continue")
self.expect("expr $foo", substrs=['$foo','0x0'])
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
OpenPOWER on IntegriCloud